Sha256: f25d815f1d3601290bcd263f9c043e18dc7ac2b8d08748d99302b1acbe992242

Contents?: true

Size: 587 Bytes

Versions: 30

Compression:

Stored size: 587 Bytes

Contents

module PodPrebuild
  class Env
    @stage_idx = 0

    class << self
      def reset!
        @stage_idx = 0
        @stages = nil
      end

      def next_stage!
        @stage_idx += 1 if @stage_idx < stages.count - 1
      end

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

      def current_stage
        stages[@stage_idx]
      end

      def prebuild_stage?
        current_stage == :prebuild
      end

      def integration_stage?
        current_stage == :integration
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 4 rubygems

Version Path
cocoapods-binary-artifactory-cache-0.0.2 lib/cocoapods-binary-artifactory-cache/env.rb
cocoapods-binary-artifactory-cache-0.0.1 lib/cocoapods-binary-artifactory-cache/env.rb
cocoapods-binary-cache-0.1.14 lib/cocoapods-binary-cache/env.rb
cocoapods-binary-cache-0.1.13 lib/cocoapods-binary-cache/env.rb
cocoapods-binary-cache-0.1.12 lib/cocoapods-binary-cache/env.rb
cocoapods-binary-cache-0.1.11 lib/cocoapods-binary-cache/env.rb
cocoapods-binary-cache-0.1.10 lib/cocoapods-binary-cache/env.rb
cocoapods-binary-cache-0.1.9 lib/cocoapods-binary-cache/env.rb
cocoapods-binary-cache-0.1.8 lib/cocoapods-binary-cache/env.rb
cocoapods-binary-cache-0.1.7 lib/cocoapods-binary-cache/env.rb