Class: Kettle::Family::CommandResult
- Inherits:
-
Struct
- Object
- Struct
- Kettle::Family::CommandResult
- Defined in:
- lib/kettle/family/command_result.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
Returns the value of attribute command.
-
#elapsed_seconds ⇒ Object
Returns the value of attribute elapsed_seconds.
-
#member_name ⇒ Object
Returns the value of attribute member_name.
-
#phase ⇒ Object
Returns the value of attribute phase.
-
#reason ⇒ Object
Returns the value of attribute reason.
-
#skipped ⇒ Object
Returns the value of attribute skipped.
-
#status ⇒ Object
Returns the value of attribute status.
-
#stderr ⇒ Object
Returns the value of attribute stderr.
-
#stdout ⇒ Object
Returns the value of attribute stdout.
-
#success ⇒ Object
Returns the value of attribute success.
-
#workdir ⇒ Object
Returns the value of attribute workdir.
Instance Method Summary collapse
Instance Attribute Details
#command ⇒ Object
Returns the value of attribute command
5 6 7 |
# File 'lib/kettle/family/command_result.rb', line 5 def command @command end |
#elapsed_seconds ⇒ Object
Returns the value of attribute elapsed_seconds
5 6 7 |
# File 'lib/kettle/family/command_result.rb', line 5 def elapsed_seconds @elapsed_seconds end |
#member_name ⇒ Object
Returns the value of attribute member_name
5 6 7 |
# File 'lib/kettle/family/command_result.rb', line 5 def member_name @member_name end |
#phase ⇒ Object
Returns the value of attribute phase
5 6 7 |
# File 'lib/kettle/family/command_result.rb', line 5 def phase @phase end |
#reason ⇒ Object
Returns the value of attribute reason
5 6 7 |
# File 'lib/kettle/family/command_result.rb', line 5 def reason @reason end |
#skipped ⇒ Object
Returns the value of attribute skipped
5 6 7 |
# File 'lib/kettle/family/command_result.rb', line 5 def skipped @skipped end |
#status ⇒ Object
Returns the value of attribute status
5 6 7 |
# File 'lib/kettle/family/command_result.rb', line 5 def status @status end |
#stderr ⇒ Object
Returns the value of attribute stderr
5 6 7 |
# File 'lib/kettle/family/command_result.rb', line 5 def stderr @stderr end |
#stdout ⇒ Object
Returns the value of attribute stdout
5 6 7 |
# File 'lib/kettle/family/command_result.rb', line 5 def stdout @stdout end |
#success ⇒ Object
Returns the value of attribute success
5 6 7 |
# File 'lib/kettle/family/command_result.rb', line 5 def success @success end |
#workdir ⇒ Object
Returns the value of attribute workdir
5 6 7 |
# File 'lib/kettle/family/command_result.rb', line 5 def workdir @workdir end |
Instance Method Details
#ok? ⇒ Boolean
34 35 36 |
# File 'lib/kettle/family/command_result.rb', line 34 def ok? success || skipped end |
#to_h ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/kettle/family/command_result.rb', line 18 def to_h { "member" => member_name, "phase" => phase, "command" => command, "workdir" => workdir, "status" => status, "success" => success, "stdout" => summarize(stdout), "stderr" => summarize(stderr), "elapsed_seconds" => elapsed_seconds, "skipped" => skipped, "reason" => reason } end |