changeset 12:848569b7f91a

use subdirectories for the master and slave
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 07 Jan 2011 11:49:53 -0800
parents fe1dc9e43d09
children 59cc21718ced
files autobot/template.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/autobot/template.py	Fri Jan 07 11:29:21 2011 -0800
+++ b/autobot/template.py	Fri Jan 07 11:49:53 2011 -0800
@@ -4,6 +4,7 @@
 templates for the A*Team's buildbot
 """
 
+import os
 import sys
 from makeitso.cli import MakeItSoCLI
 from makeitso.template import MakeItSoTemplate
@@ -12,7 +13,7 @@
 class AutobotMasterTemplate(MakeItSoTemplate):
     name = 'autobot-master'
     description = 'template for the autotools buildbot master'
-    templates = ['master']
+    templates = [os.path.join('template', 'master')]
     vars = [Variable('slave', 'buildslave name', 'slave'),
             Variable('passwd', 'buildslave password', default='passwd'),
             Variable('slaveport', 'port to talk to slaves on', default=9010),
@@ -24,7 +25,7 @@
 class AutobotSlaveTemplate(MakeItSoTemplate):
     name = 'autobot-slave'
     description = 'template for the autotools buildbot slave'
-    templates = ['slave']
+    templates = [os.path.join('template', 'slave')]
     look = True
 
 def main(args=sys.argv[1:]):