summaryrefslogtreecommitdiffstats
path: root/gross-controller.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2009-01-02 21:17:49 +0000
committerTed Trask <ttrask01@yahoo.com>2009-01-02 21:17:49 +0000
commit27408fa54e736cbcc741c3e41171d8f65b2848db (patch)
tree9cfa089e975880a50b12f6de029236c239792308 /gross-controller.lua
downloadacf-gross-27408fa54e736cbcc741c3e41171d8f65b2848db.tar.bz2
acf-gross-27408fa54e736cbcc741c3e41171d8f65b2848db.tar.xz
Added gross controller with basic functionality.
git-svn-id: svn://svn.alpinelinux.org/acf/gross/trunk@1662 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'gross-controller.lua')
-rw-r--r--gross-controller.lua22
1 files changed, 22 insertions, 0 deletions
diff --git a/gross-controller.lua b/gross-controller.lua
new file mode 100644
index 0000000..b453f59
--- /dev/null
+++ b/gross-controller.lua
@@ -0,0 +1,22 @@
+module(..., package.seeall)
+
+-- Load libraries
+require("controllerfunctions")
+
+default_action = "status"
+
+function status(self)
+ return self.model.getstatus()
+end
+
+function startstop(self)
+ return controllerfunctions.handle_startstop(self, self.model.startstop_service, self.model.getstatus, self.clientdata)
+end
+
+function details(self)
+ return self.model.getstatusdetails()
+end
+
+function expert(self)
+ return controllerfunctions.handle_form(self, self.model.get_filedetails, self.model.update_filedetails, self.clientdata, "Save", "Edit Gross Config", "Configuration Set")
+end