Package buildslave :: 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
 
__providedBy__(...)
Object Specification Descriptor
source code
 
__provides__(...)
Special descriptor for class __provides__
Class Variables
  debug = False
  interrupted = False
  running = False
  __implemented__ = <implementedBy buildslave.commands.base.Comm...
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.

__provides__(...)

 

Special descriptor for class __provides__

The descriptor caches the implementedBy info, so that we can get declarations for objects without instance-specific interfaces a bit quicker.


Class Variable Details

__implemented__

Value:
<implementedBy buildslave.commands.base.Command>