Module shellutils :: Class PowerShellOutputHandler
[hide private]

Class PowerShellOutputHandler

source code

OutputHandler --+
                |
               PowerShellOutputHandler

Instance Methods [hide private]
 
__init__(self, command=None, trimWS=None) source code
 
isCommandSucceeded(self, output)
Using status markers in output define command execution status
source code
 
cleanOutput(self, output, isFailed)
Clean output from command execution status marker
source code
 
handle(self, contentChars) source code
Class Variables [hide private]
  POWERSHELL_CMD_SUCCESS = 'True'
  POWERSHELL_CMD_FAILED = 'False'
Method Details [hide private]

isCommandSucceeded(self, output)

source code 

Using status markers in output define command execution status

Raises:
  • ValueError - Unknown command status

handle(self, contentChars)

source code 
Overrides: OutputHandler.handle