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

Class SlaveShellCommand

Command --+
          |
         SlaveShellCommand


This is a Command which runs a shell command. The args dict contains the following keys: ShellCommand creates the following status messages:
Method Summary
  closeStdin(self)
  interrupt(self)
Override this in a subclass to allow commands to be interrupted.
  start(self)
Start the command.
  writeStdin(self, data)
    Inherited from Command
  __init__(self, builder, stepId, args)
  commandComplete(self, res)
  doInterrupt(self)
  doStart(self)
  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.

Class Variable Summary
    Inherited from Command
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.
Overrides:
buildbot.slave.commands.Command.interrupt (inherited documentation)

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.
Overrides:
buildbot.slave.commands.Command.start (inherited documentation)

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