Class: KnapsackPro::Config::CI::Codeship
- Defined in:
- lib/knapsack_pro/config/ci/codeship.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
21 22 23 |
# File 'lib/knapsack_pro/config/ci/codeship.rb', line 21 def branch ENV['CI_BRANCH'] end |
#ci_provider ⇒ Object
41 42 43 |
# File 'lib/knapsack_pro/config/ci/codeship.rb', line 41 def ci_provider "Codeship" end |
#commit_hash ⇒ Object
17 18 19 |
# File 'lib/knapsack_pro/config/ci/codeship.rb', line 17 def commit_hash ENV['CI_COMMIT_ID'] end |
#detected ⇒ Object
33 34 35 |
# File 'lib/knapsack_pro/config/ci/codeship.rb', line 33 def detected ENV['CI_NAME'] == 'codeship' ? self.class : nil end |
#fixed_queue_split ⇒ Object
37 38 39 |
# File 'lib/knapsack_pro/config/ci/codeship.rb', line 37 def fixed_queue_split true end |
#node_build_id ⇒ Object
13 14 15 |
# File 'lib/knapsack_pro/config/ci/codeship.rb', line 13 def node_build_id ENV['CI_BUILD_NUMBER'] end |
#node_index ⇒ Object
9 10 11 |
# File 'lib/knapsack_pro/config/ci/codeship.rb', line 9 def node_index # not provided end |
#node_total ⇒ Object
5 6 7 |
# File 'lib/knapsack_pro/config/ci/codeship.rb', line 5 def node_total # not provided end |
#project_dir ⇒ Object
25 26 27 |
# File 'lib/knapsack_pro/config/ci/codeship.rb', line 25 def project_dir # not provided end |
#user_seat ⇒ Object
29 30 31 |
# File 'lib/knapsack_pro/config/ci/codeship.rb', line 29 def user_seat ENV['CI_COMMITTER_NAME'] end |