diff src/luan/modules/host/Hosting.luan @ 1088:bae2d0c2576c

change module naming convention
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 26 Dec 2016 22:29:36 -0700
parents e7fb974e0c26
children e8fc6712b468
line wrap: on
line diff
--- a/src/luan/modules/host/Hosting.luan	Mon Dec 19 01:38:21 2016 -0700
+++ b/src/luan/modules/host/Hosting.luan	Mon Dec 26 22:29:36 2016 -0700
@@ -12,10 +12,10 @@
 local matches = String.matches or error()
 
 
-local M = {}
+local Hosting = {}
 
 
-function M.push(domain,password,dir)
+function Hosting.push(domain,password,dir)
 	local my_dir = Io.uri("file:"..dir)
 	my_dir.exists() or error("directory '"..dir.."' not found")
 	my_dir.is_directory() or error("'"..dir.."' is not a directory")
@@ -61,27 +61,27 @@
 	host.update_handler(domain,password)
 end
 
-function M.delete(domain,password)
+function Hosting.delete(domain,password)
 	local host = Rpc.remote(domain)
 	host.delete(domain,password)
 end
 
-function M.exists(domain)
+function Hosting.exists(domain)
 	local host = Rpc.remote(domain)
 	return host.exists(domain)
 end
 
-function M.change_domain(old_domain,new_domain,password)
+function Hosting.change_domain(old_domain,new_domain,password)
 	local host = Rpc.remote(new_domain)
 	return host.change_domain(old_domain,new_domain,password)
 end
 
-function M.change_password(domain,old_password,new_password)
+function Hosting.change_password(domain,old_password,new_password)
 	local host = Rpc.remote(domain)
 	return host.change_password(domain,old_password,new_password)
 end
 
-function M.caller(domain)
+function Hosting.caller(domain)
 	local host = Rpc.remote(domain)
 	local mt = {}
 	function mt.__index(_,key)
@@ -94,4 +94,4 @@
 	return t
 end
 
-return M
+return Hosting