Exception: Build::Task::CommandFailure
- Inherits:
-
StandardError
- Object
- StandardError
- Build::Task::CommandFailure
- Defined in:
- lib/build/controller.rb
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#task ⇒ Object
readonly
Returns the value of attribute task.
Instance Method Summary collapse
-
#initialize(task, arguments, status) ⇒ CommandFailure
constructor
A new instance of CommandFailure.
Constructor Details
#initialize(task, arguments, status) ⇒ CommandFailure
Returns a new instance of CommandFailure.
88 89 90 91 92 93 94 |
# File 'lib/build/controller.rb', line 88 def initialize(task, arguments, status) @task = task @arguments = arguments @status = status super "#{@arguments.first} exited with status #{@status}" end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
97 98 99 |
# File 'lib/build/controller.rb', line 97 def arguments @arguments end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
98 99 100 |
# File 'lib/build/controller.rb', line 98 def status @status end |
#task ⇒ Object (readonly)
Returns the value of attribute task.
96 97 98 |
# File 'lib/build/controller.rb', line 96 def task @task end |