Sha256: a01c072982623991015cb2991a792817c8a624ad9df30f4503b260b11afa81a9

Contents?: true

Size: 854 Bytes

Versions: 23

Compression:

Stored size: 854 Bytes

Contents

# frozen_string_literal: true

module KnapsackPro
  module Config
    module CI
      class Circle < Base
        def node_total
          ENV['CIRCLE_NODE_TOTAL']
        end

        def node_index
          ENV['CIRCLE_NODE_INDEX']
        end

        def node_build_id
          ENV['CIRCLE_BUILD_NUM']
        end

        def commit_hash
          ENV['CIRCLE_SHA1']
        end

        def branch
          ENV['CIRCLE_BRANCH']
        end

        def project_dir
          ENV['CIRCLE_WORKING_DIRECTORY']
        end

        def user_seat
          ENV['CIRCLE_USERNAME'] || ENV['CIRCLE_PR_USERNAME']
        end

        def detected
          ENV.key?('CIRCLECI') ? self.class : nil
        end

        def fixed_queue_split
          false
        end

        def ci_provider
          "CircleCI"
        end
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
knapsack_pro-7.13.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-7.12.1 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-7.12.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-7.11.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-7.10.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-7.9.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-7.8.2 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-7.8.1 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-7.8.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-7.7.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-7.6.2 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-7.6.1 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-7.6.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-7.1.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-7.0.1 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-7.0.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-6.0.4 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-6.0.3 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-6.0.2 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-6.0.1 lib/knapsack_pro/config/ci/circle.rb