[asterisk-commits] mnicholson: branch mnicholson/asttest r191093 - /team/mnicholson/asttest/astt...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Apr 29 11:44:25 CDT 2009


Author: mnicholson
Date: Wed Apr 29 11:44:21 2009
New Revision: 191093

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=191093
Log:
Write configuration files before spawning asterisk.

Modified:
    team/mnicholson/asttest/asttest/lua/astlib.lua

Modified: team/mnicholson/asttest/asttest/lua/astlib.lua
URL: http://svn.digium.com/svn-view/asterisk/team/mnicholson/asttest/asttest/lua/astlib.lua?view=diff&rev=191093&r1=191092&r2=191093
==============================================================================
--- team/mnicholson/asttest/asttest/lua/astlib.lua (original)
+++ team/mnicholson/asttest/asttest/lua/astlib.lua Wed Apr 29 11:44:21 2009
@@ -37,6 +37,7 @@
 function asterisk:spawn()
 	self:_clean_work_area()
 	self:_create_work_area()
+	self:write_configs()
 	self:_spawn()
 end
 
@@ -63,6 +64,12 @@
 	c = config:new(name, self.work_area .. "/etc/asterisk/" .. name)
 	self[name] = c
 	return c
+end
+
+function asterisk:write_configs(directory)
+	for _, conf in pairs(self.configs) do
+		conf:write()
+	end
 end
 
 config = {}




More information about the asterisk-commits mailing list