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

Class Command

Known Subclasses:
DummyCommand, SlaveFileDownloadCommand, SlaveFileUploadCommand, SlaveShellCommand, SourceBase, WaitCommand

Method Summary
  __init__(self, builder, stepId, args)
  commandComplete(self, res)
  doInterrupt(self)
  doStart(self)
  interrupt(self)
Override this in a subclass to allow commands to be interrupted.
  sendStatus(self, status)
Send a status update to the master.
  setup(self, args)
Override this in a subclass to extract items from the args dict.
  start(self)
Start the command.

Class Variable Summary
Implements __implemented__ = <implementedBy buildbot.slave.commands...
ClassProvides __providedBy__ = <zope.interface.declarations.ClassProvi...
ClassProvides __provides__ = <zope.interface.declarations.ClassProvide...
bool debug = False
bool interrupted = False
bool running = False

Method Details

interrupt(self)

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.

sendStatus(self, status)

Send a status update to the master.

setup(self, args)

Override this in a subclass to extract items from the args dict.

start(self)

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.

Class Variable Details

__implemented__

Type:
Implements
Value:
<implementedBy buildbot.slave.commands.Command>                        

__providedBy__

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

__provides__

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

debug

Type:
bool
Value:
False                                                                  

interrupted

Type:
bool
Value:
False                                                                  

running

Type:
bool
Value:
False                                                                  

Generated by Epydoc 2.1 on Sun Dec 10 22:04:44 2006 http://epydoc.sf.net