Package buildbot :: Package slave :: Package commands :: Module registry
[frames] | no frames]

Source Code for Module buildbot.slave.commands.registry

 1   
 2  commandRegistry = {} 
 3   
4 -def registerSlaveCommand(name, factory, version):
5 """ 6 Register a slave command with the registry, making it available in slaves. 7 8 @type name: string 9 @param name: name under which the slave command will be registered; used 10 for L{buildbot.slave.bot.SlaveBuilder.remote_startCommand} 11 12 @type factory: L{buildbot.slave.commands.Command} 13 @type version: string 14 @param version: version string of the factory code 15 """ 16 assert not commandRegistry.has_key(name) 17 commandRegistry[name] = (factory, version)
18