Mercurial Hosting > luan
view core/src/luan/modules/Hosting.luan @ 282:38bd29e59a6e
minor
git-svn-id: https://luan-java.googlecode.com/svn/trunk@283 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Wed, 26 Nov 2014 22:25:09 +0000 |
parents | e5a0dd95f3e7 |
children | 7f7708e8fdd4 |
line wrap: on
line source
-- Hosting import "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(%> import "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(%> import "luan:Hosting" Hosting.do_delete_site(<%=pickle(domain)%>,<%=pickle(password)%>) <%) pc.close() end