# HG changeset patch # User Jeff Hammel # Date 1294437459 28800 # Node ID 016ffd7bfd99105018c47966cd34a6ffa7af0aa7 # Parent baee795ad6df84dafbfbc2a6c50f6880aa05bcc9 can now actually make a (admittedly non-working) buildmaster diff -r baee795ad6df -r 016ffd7bfd99 autobot/template.py --- 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'