Class: KnapsackPro::Config::CI::Heroku
- Defined in:
- lib/knapsack_pro/config/ci/heroku.rb
Instance Method Summary collapse
- #branch ⇒ Object
- #ci_provider ⇒ Object
- #commit_hash ⇒ Object
- #detected ⇒ Object
- #fixed_queue_split ⇒ Object
- #node_build_id ⇒ Object
- #node_index ⇒ Object
- #node_total ⇒ Object
- #project_dir ⇒ Object
- #user_seat ⇒ Object
Methods inherited from Base
Instance Method Details
#branch ⇒ Object
23 24 25 |
# File 'lib/knapsack_pro/config/ci/heroku.rb', line 23 def branch ENV['HEROKU_TEST_RUN_BRANCH'] end |
#ci_provider ⇒ Object
43 44 45 |
# File 'lib/knapsack_pro/config/ci/heroku.rb', line 43 def ci_provider "Heroku CI" end |
#commit_hash ⇒ Object
19 20 21 |
# File 'lib/knapsack_pro/config/ci/heroku.rb', line 19 def commit_hash ENV['HEROKU_TEST_RUN_COMMIT_VERSION'] end |
#detected ⇒ Object
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_split ⇒ Object
39 40 41 |
# File 'lib/knapsack_pro/config/ci/heroku.rb', line 39 def fixed_queue_split false end |
#node_build_id ⇒ Object
15 16 17 |
# File 'lib/knapsack_pro/config/ci/heroku.rb', line 15 def node_build_id ENV['HEROKU_TEST_RUN_ID'] end |
#node_index ⇒ Object
11 12 13 |
# File 'lib/knapsack_pro/config/ci/heroku.rb', line 11 def node_index ENV['CI_NODE_INDEX'] end |
#node_total ⇒ Object
7 8 9 |
# File 'lib/knapsack_pro/config/ci/heroku.rb', line 7 def node_total ENV['CI_NODE_TOTAL'] end |
#project_dir ⇒ Object
27 28 29 |
# File 'lib/knapsack_pro/config/ci/heroku.rb', line 27 def project_dir '/app' if node_build_id end |
#user_seat ⇒ Object
31 32 33 |
# File 'lib/knapsack_pro/config/ci/heroku.rb', line 31 def user_seat # not provided end |