Exception: System::ProcessFailed
- Defined in:
- lib/vex/base/system.rb
Instance Attribute Summary collapse
-
#cmd ⇒ Object
readonly
Returns the value of attribute cmd.
-
#exitstatus ⇒ Object
readonly
Returns the value of attribute exitstatus.
Instance Method Summary collapse
-
#initialize(cmd) ⇒ ProcessFailed
constructor
A new instance of ProcessFailed.
- #to_s ⇒ Object
Constructor Details
#initialize(cmd) ⇒ ProcessFailed
Returns a new instance of ProcessFailed.
5 6 7 |
# File 'lib/vex/base/system.rb', line 5 def initialize(cmd) @cmd, @exitstatus = cmd, $?.exitstatus end |
Instance Attribute Details
#cmd ⇒ Object (readonly)
Returns the value of attribute cmd.
3 4 5 |
# File 'lib/vex/base/system.rb', line 3 def cmd @cmd end |
#exitstatus ⇒ Object (readonly)
Returns the value of attribute exitstatus.
3 4 5 |
# File 'lib/vex/base/system.rb', line 3 def exitstatus @exitstatus end |
Instance Method Details
#to_s ⇒ Object
9 10 11 |
# File 'lib/vex/base/system.rb', line 9 def to_s "exit code: #{exitstatus}" end |