Sha256: 3fd792cc5346224c8e60c9f773894500494d61d74702779a9b781d39092bdf30

Contents?: true

Size: 842 Bytes

Versions: 23

Compression:

Stored size: 842 Bytes

Contents

# frozen_string_literal: true

module KnapsackPro
  module Config
    module CI
      class Heroku < Base
        def node_total
          ENV['CI_NODE_TOTAL']
        end

        def node_index
          ENV['CI_NODE_INDEX']
        end

        def node_build_id
          ENV['HEROKU_TEST_RUN_ID']
        end

        def commit_hash
          ENV['HEROKU_TEST_RUN_COMMIT_VERSION']
        end

        def branch
          ENV['HEROKU_TEST_RUN_BRANCH']
        end

        def project_dir
          '/app' if node_build_id
        end

        def user_seat
          # not provided
        end

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

        def fixed_queue_split
          false
        end

        def ci_provider
          "Heroku CI"
        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/heroku.rb
knapsack_pro-7.12.1 lib/knapsack_pro/config/ci/heroku.rb
knapsack_pro-7.12.0 lib/knapsack_pro/config/ci/heroku.rb
knapsack_pro-7.11.0 lib/knapsack_pro/config/ci/heroku.rb
knapsack_pro-7.10.0 lib/knapsack_pro/config/ci/heroku.rb
knapsack_pro-7.9.0 lib/knapsack_pro/config/ci/heroku.rb
knapsack_pro-7.8.2 lib/knapsack_pro/config/ci/heroku.rb
knapsack_pro-7.8.1 lib/knapsack_pro/config/ci/heroku.rb
knapsack_pro-7.8.0 lib/knapsack_pro/config/ci/heroku.rb
knapsack_pro-7.7.0 lib/knapsack_pro/config/ci/heroku.rb
knapsack_pro-7.6.2 lib/knapsack_pro/config/ci/heroku.rb
knapsack_pro-7.6.1 lib/knapsack_pro/config/ci/heroku.rb
knapsack_pro-7.6.0 lib/knapsack_pro/config/ci/heroku.rb
knapsack_pro-7.1.0 lib/knapsack_pro/config/ci/heroku.rb
knapsack_pro-7.0.1 lib/knapsack_pro/config/ci/heroku.rb
knapsack_pro-7.0.0 lib/knapsack_pro/config/ci/heroku.rb
knapsack_pro-6.0.4 lib/knapsack_pro/config/ci/heroku.rb
knapsack_pro-6.0.3 lib/knapsack_pro/config/ci/heroku.rb
knapsack_pro-6.0.2 lib/knapsack_pro/config/ci/heroku.rb
knapsack_pro-6.0.1 lib/knapsack_pro/config/ci/heroku.rb