view core/src/luan/modules/Reactionary.luan @ 171:3dcb0f9bee82

add core component git-svn-id: https://luan-java.googlecode.com/svn/trunk@172 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Sun, 22 Jun 2014 05:41:22 +0000
parents src/luan/modules/Reactionary.luan@138b9baee80b
children 69f1e79a9eb0
line wrap: on
line source

-- Reactionary

host = "localhost"
port = 9101

function put_site(domain,password,dir)
	local pc = Io.Socket(host,port).Pickle_client()
	local pickle = pc.pickle
	pc.call %>
		Reactionary.do_put_site(<%=pickle(domain)%>,<%=pickle(password)%>,<%=pickle(dir)%>)
	<%
	pc.close()
end

function delete_site(domain,password)
	local pc = Io.Socket(host,port).Pickle_client()
	local pickle = pc.pickle
	pc.call %>
		Reactionary.do_delete_site(<%=pickle(domain)%>,<%=pickle(password)%>)
	<%
	pc.close()
end