comparison 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
comparison
equal deleted inserted replaced
723:eaf30d5aaf6a 724:4f8e30a3ffd0
72 local socket = "socket:" .. domain .. ":" .. M.port 72 local socket = "socket:" .. domain .. ":" .. M.port
73 local host = Rpc.remote(socket) 73 local host = Rpc.remote(socket)
74 return host.exists(domain) 74 return host.exists(domain)
75 end 75 end
76 76
77 function M.change_domain(old_domain,new_domain,password)
78 local socket = "socket:" .. new_domain .. ":" .. M.port
79 local host = Rpc.remote(socket)
80 return host.change_domain(old_domain,new_domain,password)
81 end
82
77 return M 83 return M