Class: KnapsackPro::Config::CI::Heroku

Inherits:
Base
  • Object
show all
Defined in:
lib/knapsack_pro/config/ci/heroku.rb

Instance Method Summary collapse

Methods inherited from Base

#node_retry_count

Instance Method Details

#branchObject



21
22
23
# File 'lib/knapsack_pro/config/ci/heroku.rb', line 21

def branch
  ENV['HEROKU_TEST_RUN_BRANCH']
end

#commit_hashObject



17
18
19
# File 'lib/knapsack_pro/config/ci/heroku.rb', line 17

def commit_hash
  ENV['HEROKU_TEST_RUN_COMMIT_VERSION']
end

#node_build_idObject



13
14
15
# File 'lib/knapsack_pro/config/ci/heroku.rb', line 13

def node_build_id
  ENV['HEROKU_TEST_RUN_ID']
end

#node_indexObject



9
10
11
# File 'lib/knapsack_pro/config/ci/heroku.rb', line 9

def node_index
  ENV['CI_NODE_INDEX']
end

#node_totalObject



5
6
7
# File 'lib/knapsack_pro/config/ci/heroku.rb', line 5

def node_total
  ENV['CI_NODE_TOTAL']
end

#project_dirObject



25
26
27
# File 'lib/knapsack_pro/config/ci/heroku.rb', line 25

def project_dir
  '/app' if node_build_id
end