changeset 18:016ffd7bfd99

can now actually make a (admittedly non-working) buildmaster
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 07 Jan 2011 13:57:39 -0800
parents baee795ad6df
children 6abe5fb1fafc
files autobot/template.py
diffstat 1 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/autobot/template.py	Fri Jan 07 13:42:21 2011 -0800
+++ b/autobot/template.py	Fri Jan 07 13:57:39 2011 -0800
@@ -42,17 +42,13 @@
         else:
             raise AssertionError("No factory provided")
 
-    def post(self, variables
+    def post(self, variables):
         """
         called after the template is applied
         """
-        #        import pdb; pdb.set_trace()
-        oldcwd = os.getcwd()
-        os.chdir()
-        command = ['buildbot', 'create-master', vars['master'] ]
+        command = ['buildbot', 'create-master', self.output]
         print ' '.join(command)
         call(command)
-        os.chdir(oldcwd)
 
 class AutobotSlaveTemplate(MakeItSoTemplate):
     name = 'autobot-slave'