changeset 724:4f8e30a3ffd0

add Hosting.change_domain()
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 07 Jun 2016 16:00:41 -0600
parents eaf30d5aaf6a
children a741a3a33423
files core/src/luan/modules/host/Hosting.luan
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
diff -r eaf30d5aaf6a -r 4f8e30a3ffd0 core/src/luan/modules/host/Hosting.luan
--- 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