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

Class ShellCommand

source code

Instance Methods [hide private]
 
__init__(self, builder, command, workdir, environ=None, sendStdout=True, sendStderr=True, sendRC=True, timeout=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
 
_startCommand(self) source code
 
_chunkForSend(self, data) 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
 
kill(self, msg) source code
 
doBackupTimeout(self) source code
 
writeStdin(self, data) source code
 
closeStdin(self) source code
Class Variables [hide private]
  notreally = False
  BACKUP_TIMEOUT = 5
  KILL = 'KILL'
  CHUNK_LIMIT = 131072
  startTime = None
hash(x)
  elapsedTime = None
hash(x)
Method Details [hide private]

__init__(self, builder, command, workdir, environ=None, sendStdout=True, sendStderr=True, sendRC=True, timeout=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.