Class: PodPrebuild::Env

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-binary-cache/env.rb

Class Method Summary collapse

Class Method Details

.current_stageObject



19
20
21
# File 'lib/cocoapods-binary-cache/env.rb', line 19

def current_stage
  stages[@stage_idx]
end

.integration_stage?Boolean

Returns:

  • (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

Returns:

  • (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

.stagesObject



15
16
17
# File 'lib/cocoapods-binary-cache/env.rb', line 15

def stages
  @stages ||= PodPrebuild.config.prebuild_job? ? [:prebuild, :integration] : [:integration]
end