Trees | Indices | Help |
|
---|
|
1 # This file is part of Buildbot. Buildbot is free software: you can 2 # redistribute it and/or modify it under the terms of the GNU General Public 3 # License as published by the Free Software Foundation, version 2. 4 # 5 # This program is distributed in the hope that it will be useful, but WITHOUT 6 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 7 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 8 # details. 9 # 10 # You should have received a copy of the GNU General Public License along with 11 # this program; if not, write to the Free Software Foundation, Inc., 51 12 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 13 # 14 # Copyright Buildbot Team Members 15 16 from twisted.python import reflect 17 18 commandRegistry = { 19 # command name : fully qualified factory name (callable) 20 "shell" : "buildslave.commands.shell.SlaveShellCommand", 21 "uploadFile" : "buildslave.commands.transfer.SlaveFileUploadCommand", 22 "uploadDirectory" : "buildslave.commands.transfer.SlaveDirectoryUploadCommand", 23 "downloadFile" : "buildslave.commands.transfer.SlaveFileDownloadCommand", 24 "svn" : "buildslave.commands.svn.SVN", 25 "bk" : "buildslave.commands.bk.BK", 26 "cvs" : "buildslave.commands.cvs.CVS", 27 "darcs" : "buildslave.commands.darcs.Darcs", 28 "git" : "buildslave.commands.git.Git", 29 "repo" : "buildslave.commands.repo.Repo", 30 "bzr" : "buildslave.commands.bzr.Bzr", 31 "hg" : "buildslave.commands.hg.Mercurial", 32 "p4" : "buildslave.commands.p4.P4", 33 "p4sync" : "buildslave.commands.p4.P4Sync", 34 "mkdir" : "buildslave.commands.fs.MakeDirectory", 35 "rmdir" : "buildslave.commands.fs.RemoveDirectory", 36 "cpdir" : "buildslave.commands.fs.CopyDirectory", 37 "stat" : "buildslave.commands.fs.StatFile", 38 } 3941 factory_name = commandRegistry[command] 42 factory = reflect.namedObject(factory_name) 43 return factory4446 return commandRegistry.keys()47
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Dec 19 18:26:46 2010 | http://epydoc.sourceforge.net |