Class: XcodeBuild::Reporting::BuildReporting::Build

Inherits:
BuildAction
  • Object
show all
Defined in:
lib/xcode_build/reporting/build_reporting.rb

Instance Attribute Summary collapse

Attributes inherited from BuildAction

#finished_at, #steps_completed, #warnings

Instance Method Summary collapse

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

#environmentObject (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

Parameters:

  • value

    the value to set the attribute label to.



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_directoryObject



89
90
91
# File 'lib/xcode_build/reporting/build_reporting.rb', line 89

def target_build_directory
  @environment["TARGET_BUILD_DIR"]
end