Class: Build::BuildTask::CommandFailure
- Inherits:
-
Graph::TransientError
- Object
- Graph::TransientError
- Build::BuildTask::CommandFailure
- Defined in:
- lib/build/build_node.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
- #executable_name ⇒ Object
-
#initialize(task, arguments, status) ⇒ CommandFailure
constructor
A new instance of CommandFailure.
Constructor Details
#initialize(task, arguments, status) ⇒ CommandFailure
Returns a new instance of CommandFailure.
75 76 77 78 79 80 81 |
# File 'lib/build/build_node.rb', line 75 def initialize(task, arguments, status) @task = task @arguments = arguments @status = status super "#{File.basename(executable_name).inspect} exited with status #{@status.to_i}" end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
92 93 94 |
# File 'lib/build/build_node.rb', line 92 def arguments @arguments end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
93 94 95 |
# File 'lib/build/build_node.rb', line 93 def status @status end |
#task ⇒ Object (readonly)
Returns the value of attribute task.
91 92 93 |
# File 'lib/build/build_node.rb', line 91 def task @task end |
Instance Method Details
#executable_name ⇒ Object
83 84 85 86 87 88 89 |
# File 'lib/build/build_node.rb', line 83 def executable_name if @arguments[0].kind_of? Hash @arguments[1] else @arguments[0] end end |