diff options
author | Mika Havela <mika.havela@gmail.com> | 2008-02-15 17:09:55 +0000 |
---|---|---|
committer | Mika Havela <mika.havela@gmail.com> | 2008-02-15 17:09:55 +0000 |
commit | de0371bc26857be6e92a23ccaaaae5936a2c740e (patch) | |
tree | 2df86f8c0cf69b7078d2ac80dae1a4b110b051d5 /tinydns-controller.lua | |
parent | 0c3c51279de900006c67697187c108e7141e1fd1 (diff) | |
download | acf-tinydns-de0371bc26857be6e92a23ccaaaae5936a2c740e.tar.bz2 acf-tinydns-de0371bc26857be6e92a23ccaaaae5936a2c740e.tar.xz |
Starting to read config-files.
There is some debug output where you can se some default parameters and a list of all objects in the config-files.
git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@725 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'tinydns-controller.lua')
-rw-r--r-- | tinydns-controller.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tinydns-controller.lua b/tinydns-controller.lua index b6840d1..4e6efca 100644 --- a/tinydns-controller.lua +++ b/tinydns-controller.lua @@ -27,3 +27,13 @@ function status(self) return { status=getstatus(self) } end +function config(self) + local config = self.model.getconfig(self) + local debug = self.model.getdebug(self) + return ({ + status=getstatus(self), + config=config, + debug=debug, + }) +end + |