Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/buildbot/buildbot/slave/registry.py
blob: 772aad33c674ab30405cd2de3d186e92ea5efcde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

commandRegistry = {}

def registerSlaveCommand(name, factory, version):
    """
    Register a slave command with the registry, making it available in slaves.

    @type  name:    string
    @param name:    name under which the slave command will be registered; used
                    for L{buildbot.slave.bot.SlaveBuilder.remote_startCommand}
                    
    @type  factory: L{buildbot.slave.commands.Command}
    @type  version: string
    @param version: version string of the factory code
    """
    assert not commandRegistry.has_key(name)
    commandRegistry[name] = (factory, version)