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

Class ShellCommand

source code

Instance Methods
 
__init__(self, builder, command, workdir, environ=None, sendStdout=True, sendStderr=True, sendRC=True, timeout=None, maxTime=None, initialStdin=None, keepStdinOpen=False, keepStdout=False, keepStderr=False, logEnviron=True, logfiles={}, usePTY='slave-config') source code
 
__repr__(self) source code
 
sendStatus(self, status) source code
 
start(self) source code
 
addStdout(self, data) source code
 
addStderr(self, data) source code
 
addLogfile(self, name, data) source code
 
finished(self, sig, rc) source code
 
failed(self, why) source code
 
doTimeout(self) source code
 
doMaxTimeout(self) source code
 
kill(self, msg) source code
 
doBackupTimeout(self) source code
 
writeStdin(self, data) source code
 
closeStdin(self) source code
Class Variables
  notreally = False
  BACKUP_TIMEOUT = 5
  KILL = 'KILL'
  CHUNK_LIMIT = 131072
  BUFFER_SIZE = 65536
  BUFFER_TIMEOUT = 5
  startTime = None
  elapsedTime = None
Method Details

__init__(self, builder, command, workdir, environ=None, sendStdout=True, sendStderr=True, sendRC=True, timeout=None, maxTime=None, initialStdin=None, keepStdinOpen=False, keepStdout=False, keepStderr=False, logEnviron=True, logfiles={}, usePTY='slave-config')
(Constructor)

source code 
Parameters:
  • keepStdout - if True, we keep a copy of all the stdout text that we've seen. This copy is available in self.stdout, which can be read after the command has finished.
  • keepStderr - same, for stderr
  • usePTY - "slave-config" -> use the SlaveBuilder's usePTY; otherwise, true to use a PTY, false to not use a PTY.