Class: KnapsackPro::Config::CI::CirrusCI
- Inherits:
-
Base
- Object
- Base
- KnapsackPro::Config::CI::CirrusCI
show all
- Defined in:
- lib/knapsack_pro/config/ci/cirrus_ci.rb
Instance Method Summary
collapse
Methods inherited from Base
#node_retry_count, #user_seat
Instance Method Details
#branch ⇒ Object
21
22
23
|
# File 'lib/knapsack_pro/config/ci/cirrus_ci.rb', line 21
def branch
ENV['CIRRUS_BRANCH']
end
|
#commit_hash ⇒ Object
17
18
19
|
# File 'lib/knapsack_pro/config/ci/cirrus_ci.rb', line 17
def commit_hash
ENV['CIRRUS_CHANGE_IN_REPO']
end
|
#detected ⇒ Object
29
30
31
|
# File 'lib/knapsack_pro/config/ci/cirrus_ci.rb', line 29
def detected
ENV.key?('CIRRUS_CI') ? self.class : nil
end
|
#fixed_queue_split ⇒ Object
33
34
35
|
# File 'lib/knapsack_pro/config/ci/cirrus_ci.rb', line 33
def fixed_queue_split
false
end
|
#node_build_id ⇒ Object
13
14
15
|
# File 'lib/knapsack_pro/config/ci/cirrus_ci.rb', line 13
def node_build_id
ENV['CIRRUS_BUILD_ID']
end
|
#node_index ⇒ Object
9
10
11
|
# File 'lib/knapsack_pro/config/ci/cirrus_ci.rb', line 9
def node_index
ENV['CI_NODE_INDEX']
end
|
#node_total ⇒ Object
5
6
7
|
# File 'lib/knapsack_pro/config/ci/cirrus_ci.rb', line 5
def node_total
ENV['CI_NODE_TOTAL']
end
|
#project_dir ⇒ Object
25
26
27
|
# File 'lib/knapsack_pro/config/ci/cirrus_ci.rb', line 25
def project_dir
ENV['CIRRUS_WORKING_DIR']
end
|