Class: WinRM::PSRP::MessageData::PipelineState

Inherits:
Base
  • Object
show all
Defined in:
lib/winrm/psrp/message_data/pipeline_state.rb

Overview

pipeline state message type

Constant Summary collapse

NOT_STARTED =
0
RUNNING =
1
STOPPING =
2
STOPPED =
3
COMPLETED =
4
FAILED =
5
DISCONNECTED =
6

Instance Attribute Summary

Attributes inherited from Base

#raw

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from WinRM::PSRP::MessageData::Base

Instance Method Details

#exception_as_error_recordObject



32
33
34
# File 'lib/winrm/psrp/message_data/pipeline_state.rb', line 32

def exception_as_error_record
  @exception_as_error_record ||= ErrorRecord.new(raw) if pipeline_state == FAILED
end

#pipeline_stateObject



28
29
30
# File 'lib/winrm/psrp/message_data/pipeline_state.rb', line 28

def pipeline_state
  clixml[:i32].to_i
end