Module: XcodeBuild::Reporting::CleanReporting
- Included in:
- XcodeBuild::Reporter
- Defined in:
- lib/xcode_build/reporting/clean_reporting.rb
Defined Under Namespace
Classes: Clean
Class Method Summary collapse
Instance Method Summary collapse
- #clean_error_detected(params) ⇒ Object
- #clean_failed ⇒ Object
- #clean_started(params) ⇒ Object
- #clean_step(params) ⇒ Object
- #clean_step_failed(params) ⇒ Object
- #clean_succeeded ⇒ Object
Class Method Details
.included(klass) ⇒ Object
4 5 6 7 8 |
# File 'lib/xcode_build/reporting/clean_reporting.rb', line 4 def self.included(klass) klass.instance_eval do attr_reader :clean end end |
Instance Method Details
#clean_error_detected(params) ⇒ Object
25 26 27 |
# File 'lib/xcode_build/reporting/clean_reporting.rb', line 25 def clean_error_detected(params) clean.last_step.add_error(params) end |
#clean_failed ⇒ Object
34 35 36 37 |
# File 'lib/xcode_build/reporting/clean_reporting.rb', line 34 def clean_failed clean.failure! clean_finished end |
#clean_started(params) ⇒ Object
10 11 12 13 |
# File 'lib/xcode_build/reporting/clean_reporting.rb', line 10 def clean_started(params) @clean = Clean.new(params) notify :clean_started, clean end |
#clean_step(params) ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/xcode_build/reporting/clean_reporting.rb', line 15 def clean_step(params) if clean.last_step notify :clean_step_finished, clean.last_step end clean.add_step(params) notify :clean_step_started, clean.last_step end |
#clean_step_failed(params) ⇒ Object
39 40 41 42 43 |
# File 'lib/xcode_build/reporting/clean_reporting.rb', line 39 def clean_step_failed(params) if step = clean.step_with_params(params) step.failed = true end end |
#clean_succeeded ⇒ Object
29 30 31 32 |
# File 'lib/xcode_build/reporting/clean_reporting.rb', line 29 def clean_succeeded clean.success! clean_finished end |