summaryrefslogtreecommitdiffstats
path: root/fetchcrl-controller.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2009-02-26 15:40:33 +0000
committerTed Trask <ttrask01@yahoo.com>2009-02-26 15:40:33 +0000
commit7b53b6cc73de349af77ecd73e00f60a9e679abd2 (patch)
tree6f136f858caf5072f1ae2321e108dcf89c120f4a /fetchcrl-controller.lua
downloadacf-fetch-crl-7b53b6cc73de349af77ecd73e00f60a9e679abd2.tar.bz2
acf-fetch-crl-7b53b6cc73de349af77ecd73e00f60a9e679abd2.tar.xz
Added fetch-crl ACF.v0.1.0
git-svn-id: svn://svn.alpinelinux.org/acf/fetch-crl/trunk@1709 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'fetchcrl-controller.lua')
-rw-r--r--fetchcrl-controller.lua19
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