From de0371bc26857be6e92a23ccaaaae5936a2c740e Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Fri, 15 Feb 2008 17:09:55 +0000 Subject: 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 --- tinydns-controller.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tinydns-controller.lua') 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 + -- cgit v1.2.3