changeset 11:fe1dc9e43d09

mv template.py so i can look at the whole template directory
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 07 Jan 2011 11:29:21 -0800
parents 9bda5ada5dca
children 848569b7f91a
files autobot/template.py autobot/template/template.py
diffstat 2 files changed, 36 insertions(+), 36 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/autobot/template.py	Fri Jan 07 11:29:21 2011 -0800
@@ -0,0 +1,36 @@
+#!/usr/bin/env python
+
+"""
+templates for the A*Team's buildbot
+"""
+
+import sys
+from makeitso.cli import MakeItSoCLI
+from makeitso.template import MakeItSoTemplate
+from makeitso.template import Variable
+
+class AutobotMasterTemplate(MakeItSoTemplate):
+    name = 'autobot-master'
+    description = 'template for the autotools buildbot master'
+    templates = ['master']
+    vars = [Variable('slave', 'buildslave name', 'slave'),
+            Variable('passwd', 'buildslave password', default='passwd'),
+            Variable('slaveport', 'port to talk to slaves on', default=9010),
+            Variable('htmlport', 'port for waterfall display', default=8010)]
+
+    def pre(self, variables):
+        variables['factory'] = 'foo'
+
+class AutobotSlaveTemplate(MakeItSoTemplate):
+    name = 'autobot-slave'
+    description = 'template for the autotools buildbot slave'
+    templates = ['slave']
+    look = True
+
+def main(args=sys.argv[1:]):
+    cli = MakeItSoCLI(AutobotMasterTemplate)
+    template = cli.parse()
+    template.substitute()
+
+if __name__ == '__main__':
+    main()
--- a/autobot/template/template.py	Fri Jan 07 11:28:19 2011 -0800
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,36 +0,0 @@
-#!/usr/bin/env python
-
-"""
-templates for the A*Team's buildbot
-"""
-
-import sys
-from makeitso.cli import MakeItSoCLI
-from makeitso.template import MakeItSoTemplate
-from makeitso.template import Variable
-
-class AutobotMasterTemplate(MakeItSoTemplate):
-    name = 'autobot-master'
-    description = 'template for the autotools buildbot master'
-    templates = ['master']
-    vars = [Variable('slave', 'buildslave name', 'slave'),
-            Variable('passwd', 'buildslave password', default='passwd'),
-            Variable('slaveport', 'port to talk to slaves on', default=9010),
-            Variable('htmlport', 'port for waterfall display', default=8010)]
-
-    def pre(self, variables):
-        variables['factory'] = 'foo'
-
-class AutobotSlaveTemplate(MakeItSoTemplate):
-    name = 'autobot-slave'
-    description = 'template for the autotools buildbot slave'
-    templates = ['slave']
-    look = True
-
-def main(args=sys.argv[1:]):
-    cli = MakeItSoCLI(AutobotMasterTemplate)
-    template = cli.parse()
-    template.substitute()
-
-if __name__ == '__main__':
-    main()