Class: PodPrebuild::Env
- Inherits:
-
Object
- Object
- PodPrebuild::Env
- Defined in:
- lib/cocoapods-binary-cache/env.rb
Class Method Summary collapse
- .current_stage ⇒ Object
- .integration_stage? ⇒ Boolean
- .next_stage! ⇒ Object
- .prebuild_stage? ⇒ Boolean
- .reset! ⇒ Object
- .stages ⇒ Object
Class Method Details
.current_stage ⇒ Object
19 20 21 |
# File 'lib/cocoapods-binary-cache/env.rb', line 19 def current_stage stages[@stage_idx] end |
.integration_stage? ⇒ Boolean
27 28 29 |
# File 'lib/cocoapods-binary-cache/env.rb', line 27 def integration_stage? current_stage == :integration end |
.next_stage! ⇒ Object
11 12 13 |
# File 'lib/cocoapods-binary-cache/env.rb', line 11 def next_stage! @stage_idx += 1 if @stage_idx < stages.count - 1 end |
.prebuild_stage? ⇒ Boolean
23 24 25 |
# File 'lib/cocoapods-binary-cache/env.rb', line 23 def prebuild_stage? current_stage == :prebuild end |
.reset! ⇒ Object
6 7 8 9 |
# File 'lib/cocoapods-binary-cache/env.rb', line 6 def reset! @stage_idx = 0 @stages = nil end |
.stages ⇒ Object
15 16 17 |
# File 'lib/cocoapods-binary-cache/env.rb', line 15 def stages @stages ||= PodPrebuild.config.prebuild_job? ? [:prebuild, :integration] : [:integration] end |