Exception: Tiamat::RunRubyError
- Defined in:
- lib/tiamat/error.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(command, status) ⇒ RunRubyError
constructor
A new instance of RunRubyError.
Constructor Details
#initialize(command, status) ⇒ RunRubyError
Returns a new instance of RunRubyError.
16 17 18 19 20 |
# File 'lib/tiamat/error.rb', line 16 def initialize(command, status) @command, @status = command, status command_str = command.map { |a| "'#{a}'" }.join(", ") super("system(#{command_str}) failed with status #{@status}") end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
22 23 24 |
# File 'lib/tiamat/error.rb', line 22 def command @command end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
22 23 24 |
# File 'lib/tiamat/error.rb', line 22 def status @status end |