Mercurial Hosting > luan
diff core/src/luan/modules/host/Hosting.luan @ 724:4f8e30a3ffd0
add Hosting.change_domain()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 07 Jun 2016 16:00:41 -0600 |
parents | 28fedb32ab19 |
children | 6871ba08d521 |
line wrap: on
line diff
--- a/core/src/luan/modules/host/Hosting.luan Fri Jun 03 18:43:27 2016 -0600 +++ b/core/src/luan/modules/host/Hosting.luan Tue Jun 07 16:00:41 2016 -0600 @@ -74,4 +74,10 @@ return host.exists(domain) end +function M.change_domain(old_domain,new_domain,password) + local socket = "socket:" .. new_domain .. ":" .. M.port + local host = Rpc.remote(socket) + return host.change_domain(old_domain,new_domain,password) +end + return M