コード例 #1
0
def stop():
    '''Stop the master buildbot.'''
    from buildslave.scripts import runner
    new_args = [
        'buildslave', 'stop', pave.fs.join([pave.path.build, 'slave'])]
    sys.argv = new_args
    runner.run()
コード例 #2
0
def buildslave(args):
    '''Run the buildslave command.'''
    from buildslave.scripts import runner
    new_args = ['buildslave']
    new_args.extend(args)
    sys.argv = new_args

    with pushd(pave.fs.join(pave.path.build, 'slave')):
        runner.run()
コード例 #3
0
def start(options):
    '''Start the slave buildbot.'''
    from buildslave.scripts import runner

    # Set buildslave name to be used in buildbot.tac.
    sys.buildslave_name = pave.getOption(
        options, 'start', 'name', default_value=pave.getHostname())

    new_args = [
        'buildslave', 'start', pave.fs.join([pave.path.build, 'slave'])]
    sys.argv = new_args
    runner.run()