Class: KnapsackPro::Config::CI::Codefresh
- Defined in:
- lib/knapsack_pro/config/ci/codefresh.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
24 25 26 |
# File 'lib/knapsack_pro/config/ci/codefresh.rb', line 24 def branch ENV['CF_BRANCH'] end |
#ci_provider ⇒ Object
44 45 46 |
# File 'lib/knapsack_pro/config/ci/codefresh.rb', line 44 def ci_provider "Codefresh" end |
#commit_hash ⇒ Object
20 21 22 |
# File 'lib/knapsack_pro/config/ci/codefresh.rb', line 20 def commit_hash ENV['CF_REVISION'] end |
#detected ⇒ Object
36 37 38 |
# File 'lib/knapsack_pro/config/ci/codefresh.rb', line 36 def detected ENV.key?('CF_BUILD_ID') ? self.class : nil end |
#fixed_queue_split ⇒ Object
40 41 42 |
# File 'lib/knapsack_pro/config/ci/codefresh.rb', line 40 def fixed_queue_split false end |
#node_build_id ⇒ Object
16 17 18 |
# File 'lib/knapsack_pro/config/ci/codefresh.rb', line 16 def node_build_id ENV['CF_BUILD_ID'] end |
#node_index ⇒ Object
12 13 14 |
# File 'lib/knapsack_pro/config/ci/codefresh.rb', line 12 def node_index # not provided end |
#node_total ⇒ Object
8 9 10 |
# File 'lib/knapsack_pro/config/ci/codefresh.rb', line 8 def node_total # not provided end |
#project_dir ⇒ Object
28 29 30 |
# File 'lib/knapsack_pro/config/ci/codefresh.rb', line 28 def project_dir # not provided end |
#user_seat ⇒ Object
32 33 34 |
# File 'lib/knapsack_pro/config/ci/codefresh.rb', line 32 def user_seat ENV['CF_BUILD_INITIATOR'] end |