Class: Ocak::CommandRunner::CommandResult
- Inherits:
-
Struct
- Object
- Struct
- Ocak::CommandRunner::CommandResult
- Defined in:
- lib/ocak/command_runner.rb
Instance Attribute Summary collapse
-
#status ⇒ Object
Returns the value of attribute status.
-
#stderr ⇒ Object
Returns the value of attribute stderr.
-
#stdout ⇒ Object
Returns the value of attribute stdout.
Instance Method Summary collapse
Instance Attribute Details
#status ⇒ Object
Returns the value of attribute status
7 8 9 |
# File 'lib/ocak/command_runner.rb', line 7 def status @status end |
#stderr ⇒ Object
Returns the value of attribute stderr
7 8 9 |
# File 'lib/ocak/command_runner.rb', line 7 def stderr @stderr end |
#stdout ⇒ Object
Returns the value of attribute stdout
7 8 9 |
# File 'lib/ocak/command_runner.rb', line 7 def stdout @stdout end |
Instance Method Details
#error ⇒ Object
16 17 18 |
# File 'lib/ocak/command_runner.rb', line 16 def error stderr[0...500] end |
#output ⇒ Object
12 13 14 |
# File 'lib/ocak/command_runner.rb', line 12 def output stdout.strip end |
#success? ⇒ Boolean
8 9 10 |
# File 'lib/ocak/command_runner.rb', line 8 def success? status&.success? == true end |