diff options
Diffstat (limited to 'fetchcrl-controller.lua')
-rw-r--r-- | fetchcrl-controller.lua | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/fetchcrl-controller.lua b/fetchcrl-controller.lua new file mode 100644 index 0000000..0b957ba --- /dev/null +++ b/fetchcrl-controller.lua @@ -0,0 +1,19 @@ +-- the fetch-crl controller + +module (..., package.seeall) + +require("controllerfunctions") + +default_action = "status" + +status = function( self ) + return self.model.get_status() +end + +startstop = function( self ) + return controllerfunctions.handle_startstop(self, self.model.startstop_service, self.model.get_status, self.clientdata) +end + +expert = function( self ) + return controllerfunctions.handle_form(self, self.model.get_configfile, self.model.update_configfile, self.clientdata, "Save", "Edit Configuration", "Configuration Saved") +end |