1   
 2  commandRegistry = {} 
 3   
 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