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



23
24
25
# File 'lib/knapsack_pro/config/ci/heroku.rb', line 23

def branch
  ENV['HEROKU_TEST_RUN_BRANCH']
end

#ci_providerObject



43
44
45
# File 'lib/knapsack_pro/config/ci/heroku.rb', line 43

def ci_provider
  "Heroku CI"
end

#commit_hashObject



19
20
21
# File 'lib/knapsack_pro/config/ci/heroku.rb', line 19

def commit_hash
  ENV['HEROKU_TEST_RUN_COMMIT_VERSION']
end

#detectedObject



35
36
37
# File 'lib/knapsack_pro/config/ci/heroku.rb', line 35

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

#fixed_queue_splitObject



39
40
41
# File 'lib/knapsack_pro/config/ci/heroku.rb', line 39

def fixed_queue_split
  false
end

#node_build_idObject



15
16
17
# File 'lib/knapsack_pro/config/ci/heroku.rb', line 15

def node_build_id
  ENV['HEROKU_TEST_RUN_ID']
end

#node_indexObject



11
12
13
# File 'lib/knapsack_pro/config/ci/heroku.rb', line 11

def node_index
  ENV['CI_NODE_INDEX']
end

#node_totalObject



7
8
9
# File 'lib/knapsack_pro/config/ci/heroku.rb', line 7

def node_total
  ENV['CI_NODE_TOTAL']
end

#project_dirObject



27
28
29
# File 'lib/knapsack_pro/config/ci/heroku.rb', line 27

def project_dir
  '/app' if node_build_id
end

#user_seatObject



31
32
33
# File 'lib/knapsack_pro/config/ci/heroku.rb', line 31

def user_seat
  # not provided
end