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

Instance Method Summary collapse

Methods inherited from BuildAction

#add_step, #configuration, #default_configuration?, #duration, #failed_steps, #finished?, #has_errors?, #label, #last_step, #project_name, #step_with_params, #target

Constructor Details

#initialize(metadata) ⇒ Build

Returns a new instance of Build.



74
75
76
77
78
# File 'lib/xcode_build/reporting/build_reporting.rb', line 74

def initialize()
  super()
  @environment = {}
  @label = "Build"
end

Instance Attribute Details

#environmentObject (readonly)

Returns the value of attribute environment.



71
72
73
# File 'lib/xcode_build/reporting/build_reporting.rb', line 71

def environment
  @environment
end

#label=(value) ⇒ Object (writeonly)

Sets the attribute label

Parameters:

  • value

    the value to set the attribute label to.



72
73
74
# File 'lib/xcode_build/reporting/build_reporting.rb', line 72

def label=(value)
  @label = value
end

Instance Method Details

#set_environment_variable(key, value) ⇒ Object



80
81
82
# File 'lib/xcode_build/reporting/build_reporting.rb', line 80

def set_environment_variable(key, value)
  @environment[key] = value
end

#target_build_directoryObject



84
85
86
# File 'lib/xcode_build/reporting/build_reporting.rb', line 84

def target_build_directory
  @environment["TARGET_BUILD_DIR"]
end