Class: XcodeBuild::BuildStep
- Inherits:
-
Object
- Object
- XcodeBuild::BuildStep
- Defined in:
- lib/xcode_build/build_step.rb
Defined Under Namespace
Classes: Error
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#failed ⇒ Object
Returns the value of attribute failed.
Instance Method Summary collapse
- #==(other_action) ⇒ Object
- #add_error(params) ⇒ Object
- #arguments ⇒ Object
- #failed? ⇒ Boolean
- #has_errors? ⇒ Boolean
-
#initialize(metadata) ⇒ BuildStep
constructor
A new instance of BuildStep.
- #inspect ⇒ Object
- #type ⇒ Object
Constructor Details
#initialize(metadata) ⇒ BuildStep
Returns a new instance of BuildStep.
8 9 10 11 |
# File 'lib/xcode_build/build_step.rb', line 8 def initialize() @metadata = @errors = [] end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
6 7 8 |
# File 'lib/xcode_build/build_step.rb', line 6 def errors @errors end |
#failed ⇒ Object
Returns the value of attribute failed.
5 6 7 |
# File 'lib/xcode_build/build_step.rb', line 5 def failed @failed end |
Instance Method Details
#==(other_action) ⇒ Object
21 22 23 24 |
# File 'lib/xcode_build/build_step.rb', line 21 def ==(other_action) (other_action.type == type && other_action.arguments == arguments) end |
#add_error(params) ⇒ Object
13 14 15 |
# File 'lib/xcode_build/build_step.rb', line 13 def add_error(params) @errors << Error.new(params) end |
#arguments ⇒ Object
30 31 32 |
# File 'lib/xcode_build/build_step.rb', line 30 def arguments @metadata[:arguments] end |
#failed? ⇒ Boolean
34 35 36 |
# File 'lib/xcode_build/build_step.rb', line 34 def failed? @failed end |
#has_errors? ⇒ Boolean
17 18 19 |
# File 'lib/xcode_build/build_step.rb', line 17 def has_errors? @errors.any? end |
#inspect ⇒ Object
38 39 40 |
# File 'lib/xcode_build/build_step.rb', line 38 def inspect [type, arguments] end |
#type ⇒ Object
26 27 28 |
# File 'lib/xcode_build/build_step.rb', line 26 def type @metadata[:type] end |