Class: KnapsackPro::Config::CI::Buildkite
- Defined in:
- lib/knapsack_pro/config/ci/buildkite.rb
Instance Method Summary collapse
- #branch ⇒ Object
- #commit_hash ⇒ Object
- #node_index ⇒ Object
- #node_total ⇒ Object
- #project_dir ⇒ Object
Instance Method Details
#branch ⇒ Object
17 18 19 |
# File 'lib/knapsack_pro/config/ci/buildkite.rb', line 17 def branch ENV['BUILDKITE_BRANCH'] end |
#commit_hash ⇒ Object
13 14 15 |
# File 'lib/knapsack_pro/config/ci/buildkite.rb', line 13 def commit_hash ENV['BUILDKITE_COMMIT'] end |
#node_index ⇒ Object
9 10 11 |
# File 'lib/knapsack_pro/config/ci/buildkite.rb', line 9 def node_index ENV['BUILDKITE_PARALLEL_JOB'] end |
#node_total ⇒ Object
5 6 7 |
# File 'lib/knapsack_pro/config/ci/buildkite.rb', line 5 def node_total ENV['BUILDKITE_PARALLEL_JOB_COUNT'] end |
#project_dir ⇒ Object
21 22 23 |
# File 'lib/knapsack_pro/config/ci/buildkite.rb', line 21 def project_dir ENV['BUILDKITE_BUILD_CHECKOUT_PATH'] end |