Class: Knapsack::Config
- Inherits:
-
Object
- Object
- Knapsack::Config
- Defined in:
- lib/knapsack/config.rb
Class Method Summary collapse
- .ci_node_index ⇒ Object
- .ci_node_total ⇒ Object
- .enable_time_offset_warning ⇒ Object
- .generate_report ⇒ Object
- .report_path ⇒ Object
- .spec_pattern ⇒ Object
- .time_offset_in_seconds ⇒ Object
Class Method Details
.ci_node_index ⇒ Object
12 13 14 |
# File 'lib/knapsack/config.rb', line 12 def ci_node_index ENV['CI_NODE_INDEX'] || ENV['CIRCLE_NODE_INDEX'] || 0 end |
.ci_node_total ⇒ Object
8 9 10 |
# File 'lib/knapsack/config.rb', line 8 def ci_node_total ENV['CI_NODE_TOTAL'] || ENV['CIRCLE_NODE_TOTAL'] || 1 end |
.enable_time_offset_warning ⇒ Object
20 21 22 |
# File 'lib/knapsack/config.rb', line 20 def enable_time_offset_warning true end |
.generate_report ⇒ Object
28 29 30 |
# File 'lib/knapsack/config.rb', line 28 def generate_report ENV['KNAPSACK_GENERATE_REPORT'] || false end |
.report_path ⇒ Object
4 5 6 |
# File 'lib/knapsack/config.rb', line 4 def report_path ENV['KNAPSACK_REPORT_PATH'] || 'knapsack_report.json' end |
.spec_pattern ⇒ Object
16 17 18 |
# File 'lib/knapsack/config.rb', line 16 def spec_pattern ENV['KNAPSACK_SPEC_PATTERN'] || 'spec/**/*_spec.rb' end |
.time_offset_in_seconds ⇒ Object
24 25 26 |
# File 'lib/knapsack/config.rb', line 24 def time_offset_in_seconds 30 end |