Class: EY::Serverside::Shell::CommandResult
- Defined in:
- lib/engineyard-serverside/shell/command_result.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
Returns the value of attribute command.
-
#exitstatus ⇒ Object
Returns the value of attribute exitstatus.
-
#output ⇒ Object
Returns the value of attribute output.
Instance Method Summary collapse
Instance Attribute Details
#command ⇒ Object
Returns the value of attribute command
4 5 6 |
# File 'lib/engineyard-serverside/shell/command_result.rb', line 4 def command @command end |
#exitstatus ⇒ Object
Returns the value of attribute exitstatus
4 5 6 |
# File 'lib/engineyard-serverside/shell/command_result.rb', line 4 def exitstatus @exitstatus end |
#output ⇒ Object
Returns the value of attribute output
4 5 6 |
# File 'lib/engineyard-serverside/shell/command_result.rb', line 4 def output @output end |
Instance Method Details
#inspect ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/engineyard-serverside/shell/command_result.rb', line 9 def inspect "$ \#{command}\n\#{output}\n\n($?: \#{exitstatus})\n EOM\nend\n" |
#success? ⇒ Boolean
5 6 7 |
# File 'lib/engineyard-serverside/shell/command_result.rb', line 5 def success? exitstatus.to_i == 0 end |