comparison autobot/template.py @ 295:773192c7c5b3

STUB: autobot/template.py
author Jeff Hammel <k0scist@gmail.com>
date Sun, 11 May 2014 04:49:45 -0700
parents 45fd58949f8a
children fe009d4322b7
comparison
equal deleted inserted replaced
294:45fd58949f8a 295:773192c7c5b3
33 33
34 class AutobotMasterTemplate(MakeItSoTemplate): 34 class AutobotMasterTemplate(MakeItSoTemplate):
35 name = 'autobot-master' 35 name = 'autobot-master'
36 description = 'template for the autobot buildbot master' 36 description = 'template for the autobot buildbot master'
37 templates = [os.path.join('template', 'master')] 37 templates = [os.path.join('template', 'master')]
38 vars = [Variable('slave', 'buildslave name', os_type or 'slave'), 38 vars = [Variable('slave', 'buildslave name', 'slave'),
39 Variable('os', 'buildslave os (win, mac, linux)', os_type), 39 Variable('os', 'buildslave os (win, mac, linux)'),
40 Variable('passwd', 'buildslave password', default='passwd'), 40 Variable('passwd', 'buildslave password', default='passwd'),
41 Variable('slaveport', 'port to talk to slaves on', default=9010, cast=int), 41 Variable('slaveport', 'port to talk to slaves on', default=9010, cast=int),
42 Variable('htmlport', 'port for waterfall display', default=8010, cast=int), 42 Variable('htmlport', 'port for waterfall display', default=8010, cast=int),
43 Variable('publichtmlport', 'port for public waterfall display', default=8011, cast=int), 43 Variable('publichtmlport', 'port for public waterfall display', default=8011, cast=int),
44 Variable('botname', 'name of IRC bot'), 44 Variable('botname', 'name of IRC bot'),
45 Variable('ircHost', 'IRC host'), 45 Variable('ircHost', 'IRC host'),
46 Variable('ircChannels', 'channels for the IRC bot ("-" for none)') 46 Variable('ircChannels', 'channels for the IRC bot ("-" for none)'),
47 Variable('domain', 'autobot domain name', default='localhost'), 47 Variable('domain', 'autobot domain name', default='localhost'),
48 Variable('recipients', 'email recipients for all projects', '') 48 Variable('recipients', 'email recipients for all projects', '')
49 ] 49 ]
50 50
51 def pre(self, variables, output): 51 def pre(self, variables, output):
79 class AutobotSlaveTemplate(MakeItSoTemplate): 79 class AutobotSlaveTemplate(MakeItSoTemplate):
80 name = 'autobot-slave' 80 name = 'autobot-slave'
81 description = 'template for the autotools buildbot slave' 81 description = 'template for the autotools buildbot slave'
82 templates = [os.path.join('template', 'slave')] 82 templates = [os.path.join('template', 'slave')]
83 vars = [Variable('master', 'host of the master', default='localhost'), 83 vars = [Variable('master', 'host of the master', default='localhost'),
84 Variable('slave', 'buildslave name', os_type or 'slave'), 84 Variable('slave', 'buildslave name', 'slave'),
85 Variable('passwd', 'buildslave password', default='passwd'), 85 Variable('passwd', 'buildslave password', default='passwd'),
86 Variable('slaveport', 'port to talk to slaves on', default=9010)] 86 Variable('slaveport', 'port to talk to slaves on', default=9010)]
87 87
88 def create(self, output, variables): 88 def create(self, output, variables):
89 command = ['buildslave', 'create-slave', output, 89 command = ['buildslave', 'create-slave', output,