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
22 23 24 |
# File 'lib/agent_harness/command_executor.rb', line 22 def duration @duration end |
#exit_code ⇒ Object
Returns the value of attribute exit_code
22 23 24 |
# File 'lib/agent_harness/command_executor.rb', line 22 def exit_code @exit_code end |
#stderr ⇒ Object
Returns the value of attribute stderr
22 23 24 |
# File 'lib/agent_harness/command_executor.rb', line 22 def stderr @stderr end |
#stdout ⇒ Object
Returns the value of attribute stdout
22 23 24 |
# File 'lib/agent_harness/command_executor.rb', line 22 def stdout @stdout end |
Instance Method Details
#failed? ⇒ Boolean
27 28 29 |
# File 'lib/agent_harness/command_executor.rb', line 27 def failed? !success? end |
#success? ⇒ Boolean
23 24 25 |
# File 'lib/agent_harness/command_executor.rb', line 23 def success? exit_code == 0 end |