class PodPrebuild::Env
Public Class Methods
current_stage()
click to toggle source
# File lib/cocoapods-binary-cache/env.rb, line 19 def current_stage stages[@stage_idx] end
integration_stage?()
click to toggle source
# File lib/cocoapods-binary-cache/env.rb, line 27 def integration_stage? current_stage == :integration end
next_stage!()
click to toggle source
# File lib/cocoapods-binary-cache/env.rb, line 11 def next_stage! @stage_idx += 1 if @stage_idx < stages.count - 1 end
prebuild_stage?()
click to toggle source
# File lib/cocoapods-binary-cache/env.rb, line 23 def prebuild_stage? current_stage == :prebuild end
reset!()
click to toggle source
# File lib/cocoapods-binary-cache/env.rb, line 6 def reset! @stage_idx = 0 @stages = nil end
stages()
click to toggle source
# File lib/cocoapods-binary-cache/env.rb, line 15 def stages @stages ||= PodPrebuild.config.prebuild_job? ? [:prebuild, :integration] : [:integration] end