summaryrefslogtreecommitdiffstats
path: root/rc-controller.lua
diff options
context:
space:
mode:
Diffstat (limited to 'rc-controller.lua')
-rw-r--r--rc-controller.lua12
1 files changed, 7 insertions, 5 deletions
diff --git a/rc-controller.lua b/rc-controller.lua
index 63d9a94..4ec40b9 100644
--- a/rc-controller.lua
+++ b/rc-controller.lua
@@ -1,17 +1,19 @@
-- the rc controller
-module (..., package.seeall)
+local mymodule = {}
-default_action = "status"
+mymodule.default_action = "status"
-status = function(self)
+mymodule.status = function(self)
return self.model.status()
end
-edit = function(self)
+mymodule.edit = function(self)
return self.handle_form(self, self.model.read_runlevels, self.model.update_runlevels, self.clientdata, "Save", "Edit Service Runlevels", "Runlevels Updated")
end
-startstop = function(self)
+mymodule.startstop = function(self)
return self.handle_form(self, self.model.get_startstop, self.model.startstop_service, self.clientdata)
end
+
+return mymodule