Class: Pfab::CommandResult
- Inherits:
-
Struct
- Object
- Struct
- Pfab::CommandResult
- Defined in:
- lib/pfab/cli.rb
Instance Attribute Summary collapse
-
#exit_status_code ⇒ Object
Returns the value of attribute exit_status_code.
-
#stderr ⇒ Object
Returns the value of attribute stderr.
-
#stdout ⇒ Object
Returns the value of attribute stdout.
Instance Method Summary collapse
Instance Attribute Details
#exit_status_code ⇒ Object
Returns the value of attribute exit_status_code
494 495 496 |
# File 'lib/pfab/cli.rb', line 494 def exit_status_code @exit_status_code end |
#stderr ⇒ Object
Returns the value of attribute stderr
494 495 496 |
# File 'lib/pfab/cli.rb', line 494 def stderr @stderr end |
#stdout ⇒ Object
Returns the value of attribute stdout
494 495 496 |
# File 'lib/pfab/cli.rb', line 494 def stdout @stdout end |
Instance Method Details
#success? ⇒ Boolean
495 496 497 |
# File 'lib/pfab/cli.rb', line 495 def success? exit_status_code == 0 end |
#to_s ⇒ Object
499 500 501 |
# File 'lib/pfab/cli.rb', line 499 def to_s "status: #{exit_status_code}\n\nstdout: #{stdout}\n\nstderr: #{stderr}\n\n" end |