Mercurial Hosting > luan
view core/src/luan/modules/Hosting.luan @ 340:fb18724521d2
rename Html.simple_html_page to simply_html_page
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 31 Mar 2015 02:35:40 -0600 |
parents | 7f7708e8fdd4 |
children |
line wrap: on
line source
-- Hosting local Io = require "luan:Io" port = 9101 function put_site(domain,password,dir) local socket = "socket:" .. domain .. ":" .. port local pc = Io.Uri(socket).Pickle_client() local pickle = pc.pickle pc.call(%> local Hosting = require "luan:Hosting" Hosting.do_put_site(<%=pickle(domain)%>,<%=pickle(password)%>,<%=pickle(dir)%>) <%) pc.close() end function delete_site(domain,password) local socket = "socket:" .. domain .. ":" .. port local pc = Io.Uri(socket).Pickle_client() local pickle = pc.pickle pc.call(%> local Hosting = require "luan:Hosting" Hosting.do_delete_site(<%=pickle(domain)%>,<%=pickle(password)%>) <%) pc.close() end