Class: AgentHarness::CommandExecutor::Result
- Inherits:
-
Struct
- Object
- Struct
- AgentHarness::CommandExecutor::Result
- Defined in:
- lib/agent_harness/command_executor.rb
Overview
Result of a command execution
Instance Attribute Summary collapse
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#exit_code ⇒ Object
Returns the value of attribute exit_code.
-
#stderr ⇒ Object
Returns the value of attribute stderr.
-
#stdout ⇒ Object
Returns the value of attribute stdout.
Instance Method Summary collapse
Instance Attribute Details
#duration ⇒ Object
Returns the value of attribute duration
30 31 32 |
# File 'lib/agent_harness/command_executor.rb', line 30 def duration @duration end |
#exit_code ⇒ Object
Returns the value of attribute exit_code
30 31 32 |
# File 'lib/agent_harness/command_executor.rb', line 30 def exit_code @exit_code end |
#stderr ⇒ Object
Returns the value of attribute stderr
30 31 32 |
# File 'lib/agent_harness/command_executor.rb', line 30 def stderr @stderr end |
#stdout ⇒ Object
Returns the value of attribute stdout
30 31 32 |
# File 'lib/agent_harness/command_executor.rb', line 30 def stdout @stdout end |
Instance Method Details
#failed? ⇒ Boolean
35 36 37 |
# File 'lib/agent_harness/command_executor.rb', line 35 def failed? !success? end |
#success? ⇒ Boolean
31 32 33 |
# File 'lib/agent_harness/command_executor.rb', line 31 def success? exit_code == 0 end |