Class: XcodeBuild::Reporting::BuildReporting::Build
- Inherits:
-
BuildAction
- Object
- BuildAction
- XcodeBuild::Reporting::BuildReporting::Build
- Defined in:
- lib/xcode_build/reporting/build_reporting.rb
Instance Attribute Summary collapse
-
#environment ⇒ Object
readonly
Returns the value of attribute environment.
-
#label ⇒ Object
writeonly
Sets the attribute label.
Attributes inherited from BuildAction
#finished_at, #steps_completed, #warnings
Instance Method Summary collapse
-
#initialize(metadata) ⇒ Build
constructor
A new instance of Build.
- #set_environment_variable(key, value) ⇒ Object
- #target_build_directory ⇒ Object
Methods inherited from BuildAction
#add_step, #add_warning, #configuration, #default_configuration?, #duration, #error_count, #failed_steps, #finished?, #has_errors?, #has_warnings?, #label, #last_step, #project_name, #step_with_params, #target
Constructor Details
#initialize(metadata) ⇒ Build
Returns a new instance of Build.
79 80 81 82 83 |
# File 'lib/xcode_build/reporting/build_reporting.rb', line 79 def initialize() super() @environment = {} @label = "Build" end |
Instance Attribute Details
#environment ⇒ Object (readonly)
Returns the value of attribute environment.
76 77 78 |
# File 'lib/xcode_build/reporting/build_reporting.rb', line 76 def environment @environment end |
#label=(value) ⇒ Object (writeonly)
Sets the attribute label
77 78 79 |
# File 'lib/xcode_build/reporting/build_reporting.rb', line 77 def label=(value) @label = value end |
Instance Method Details
#set_environment_variable(key, value) ⇒ Object
85 86 87 |
# File 'lib/xcode_build/reporting/build_reporting.rb', line 85 def set_environment_variable(key, value) @environment[key] = value end |
#target_build_directory ⇒ Object
89 90 91 |
# File 'lib/xcode_build/reporting/build_reporting.rb', line 89 def target_build_directory @environment["TARGET_BUILD_DIR"] end |