Sha256: b6a2630b94bba22f0574b7c3ebac2ac8354d6b9b9f908b784b6dac884553d314

Contents?: true

Size: 692 Bytes

Versions: 12

Compression:

Stored size: 692 Bytes

Contents

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 detected
          ENV.key?('HEROKU_TEST_RUN_ID') ? 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/heroku.rb
knapsack_pro-5.3.4 lib/knapsack_pro/config/ci/heroku.rb
knapsack_pro-5.3.3 lib/knapsack_pro/config/ci/heroku.rb
knapsack_pro-5.3.2 lib/knapsack_pro/config/ci/heroku.rb
knapsack_pro-5.3.1 lib/knapsack_pro/config/ci/heroku.rb
knapsack_pro-5.3.0 lib/knapsack_pro/config/ci/heroku.rb
knapsack_pro-5.2.1 lib/knapsack_pro/config/ci/heroku.rb
knapsack_pro-5.2.0 lib/knapsack_pro/config/ci/heroku.rb
knapsack_pro-5.1.2 lib/knapsack_pro/config/ci/heroku.rb
knapsack_pro-5.1.1 lib/knapsack_pro/config/ci/heroku.rb
knapsack_pro-5.1.0 lib/knapsack_pro/config/ci/heroku.rb
knapsack_pro-5.0.0 lib/knapsack_pro/config/ci/heroku.rb