diff options
Diffstat (limited to 'postgresql-controller.lua')
-rw-r--r-- | postgresql-controller.lua | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/postgresql-controller.lua b/postgresql-controller.lua new file mode 100644 index 0000000..cf6301f --- /dev/null +++ b/postgresql-controller.lua @@ -0,0 +1,26 @@ +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 listfiles(self) + return self.model.getfilelist() +end + +function expert(self) + return controllerfunctions.handle_form(self, function() return self.model.getfiledetails(self.clientdata.filename) end, self.model.updatefiledetails, self.clientdata, "Save", "Edit Postgresql File", "File Saved") +end |