Package buildbot :: Package slave :: Package commands :: Module base :: Class Command
[frames] | no frames]

Class Command

source code

Known Subclasses:

Instance Methods
 
__init__(self, builder, stepId, args) source code
 
setup(self, args)
Override this in a subclass to extract items from the args dict.
source code
 
doStart(self) source code
 
start(self)
Start the command.
source code
 
sendStatus(self, status)
Send a status update to the master.
source code
 
doInterrupt(self) source code
 
interrupt(self)
Override this in a subclass to allow commands to be interrupted.
source code
 
commandComplete(self, res) source code
 
__providedBy__(...)
Object Specification Descriptor
source code
Class Variables
  debug = False
  interrupted = False
  running = False
  __implemented__ = <implementedBy buildbot.slave.commands.base....
  __provides__ = <zope.interface.declarations.ClassProvides obje...
Method Details

start(self)

source code 

Start the command. This method should return a Deferred that will fire when the command has completed. The Deferred's argument will be ignored.

This method should be overridden by subclasses.

interrupt(self)

source code 

Override this in a subclass to allow commands to be interrupted. May be called multiple times, test and set self.interrupted=True if this matters.


Class Variable Details

__implemented__

Value:
<implementedBy buildbot.slave.commands.base.Command>

__provides__

Value:
<zope.interface.declarations.ClassProvides object at 0x1696f10>