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 the command.
source code
sendStatus(self, status)
Send a status update to the master.
source code
doInterrupt(self) source code
Override this in a subclass to allow commands to be interrupted.
source code
Object Specification Descriptor
source code
Special descriptor for class __provides__
Class Variables
  debug = False
  interrupted = False
  running = False
  __implemented__ = <implementedBy buildslave.commands.base.Comm...
Method Details


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.


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.


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.

For example:

  >>> from zope.interface import Interface
  >>> class IFooFactory(Interface):
  ...     pass
  >>> class IFoo(Interface):
  ...     pass
  >>> class C(object):
  ...     implements(IFoo)
  ...     classProvides(IFooFactory)
  >>> [i.getName() for i in C.__provides__]

  >>> [i.getName() for i in C().__provides__]

Class Variable Details


<implementedBy buildslave.commands.base.Command>