Sha256: 91bf2a769bff36c167f689d164ff8f2ae599fa8d86797d1a4bf4c968018569b7

Contents?: true

Size: 765 Bytes

Versions: 12

Compression:

Stored size: 765 Bytes

Contents

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
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
knapsack_pro-5.3.5 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-5.3.4 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-5.3.3 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-5.3.2 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-5.3.1 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-5.3.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-5.2.1 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-5.2.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-5.1.2 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-5.1.1 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-5.1.0 lib/knapsack_pro/config/ci/circle.rb
knapsack_pro-5.0.0 lib/knapsack_pro/config/ci/circle.rb