[asterisk-commits] mnicholson: branch mnicholson/asttest r193827 - in /team/mnicholson/asttest/a...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon May 11 21:17:30 CDT 2009


Author: mnicholson
Date: Mon May 11 21:17:26 2009
New Revision: 193827

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=193827
Log:
Renamed write_config() and write_section() to _write()

Modified:
    team/mnicholson/asttest/asttest/lua/astlib.lua
    team/mnicholson/asttest/asttest/self-tests/astlib_configs/test.lua

Modified: team/mnicholson/asttest/asttest/lua/astlib.lua
URL: http://svn.asterisk.org/svn-view/asterisk/team/mnicholson/asttest/asttest/lua/astlib.lua?view=diff&rev=193827&r1=193826&r2=193827
==============================================================================
--- team/mnicholson/asttest/asttest/lua/astlib.lua (original)
+++ team/mnicholson/asttest/asttest/lua/astlib.lua Mon May 11 21:17:26 2009
@@ -86,7 +86,7 @@
 
 function asterisk:write_configs()
 	for _, conf in pairs(self.configs) do
-		conf:write_config()
+		conf:_write()
 	end
 end
 
@@ -186,7 +186,7 @@
 	return config[key]
 end
 
-function config:write_config(filename)
+function config:_write(filename)
 	if not filename then
 		filename = self.filename
 	end
@@ -201,7 +201,7 @@
 
 	for _, section in ipairs(self.sections) do
 		if getmetatable(section) == conf_section then
-			section:write_section(f)
+			section:_write(f)
 		else
 			f:write(tostring(section))
 		end
@@ -239,7 +239,7 @@
 	return conf_section[key]
 end
 
-function conf_section:write_section(f)
+function conf_section:_write(f)
 	f:write("[" .. self.name .. "]")
 	if self.template then
 		f:write("(!")

Modified: team/mnicholson/asttest/asttest/self-tests/astlib_configs/test.lua
URL: http://svn.asterisk.org/svn-view/asterisk/team/mnicholson/asttest/asttest/self-tests/astlib_configs/test.lua?view=diff&rev=193827&r1=193826&r2=193827
==============================================================================
--- team/mnicholson/asttest/asttest/self-tests/astlib_configs/test.lua (original)
+++ team/mnicholson/asttest/asttest/self-tests/astlib_configs/test.lua Mon May 11 21:17:26 2009
@@ -72,7 +72,7 @@
 s.inherit = {"template", "test"}
 s["value"] = "default"
 
-c:write_config()
+c:_write()
 
 f = io.open("test.conf")
 test_conf = f:read("*a")




More information about the asterisk-commits mailing list