Class: XcodeBuild::Reporter

Inherits:
Object
  • Object
show all
Includes:
XcodeBuild::Reporting::BuildReporting, XcodeBuild::Reporting::CleanReporting
Defined in:
lib/xcode_build/reporter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from XcodeBuild::Reporting::CleanReporting

#clean_error_detected, #clean_failed, #clean_started, #clean_step, #clean_step_failed, #clean_succeeded, included

Methods included from XcodeBuild::Reporting::BuildReporting

#build_env_variable_detected, #build_error_detected, #build_failed, #build_started, #build_step, #build_step_failed, #build_succeeded, #build_warning_detected, included

Constructor Details

#initialize(delegate = nil) ⇒ Reporter

Returns a new instance of Reporter.



11
12
13
# File 'lib/xcode_build/reporter.rb', line 11

def initialize(delegate = nil)
  @delegate = delegate
end

Instance Attribute Details

#delegateObject

Returns the value of attribute delegate.



9
10
11
# File 'lib/xcode_build/reporter.rb', line 9

def delegate
  @delegate
end

Instance Method Details

#beginning_translation_of_line(line) ⇒ Object



19
20
21
# File 'lib/xcode_build/reporter.rb', line 19

def beginning_translation_of_line(line)
  (@output_stream << line) if @output_stream
end

#direct_raw_output_to=(stream) ⇒ Object



15
16
17
# File 'lib/xcode_build/reporter.rb', line 15

def direct_raw_output_to=(stream)
  @output_stream = stream
end

#report_running_action(action) ⇒ Object



23
24
25
# File 'lib/xcode_build/reporter.rb', line 23

def report_running_action(action)
  notify :build_action_starting, action
end