Class: Knapsack::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/knapsack/config.rb

Class Method Summary collapse

Class Method Details

.ci_node_indexObject



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_totalObject



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_warningObject



20
21
22
# File 'lib/knapsack/config.rb', line 20

def enable_time_offset_warning
  true
end

.generate_reportObject



28
29
30
# File 'lib/knapsack/config.rb', line 28

def generate_report
  ENV['KNAPSACK_GENERATE_REPORT'] || false
end

.report_pathObject



4
5
6
# File 'lib/knapsack/config.rb', line 4

def report_path
  ENV['KNAPSACK_REPORT_PATH'] || 'knapsack_report.json'
end

.spec_patternObject



16
17
18
# File 'lib/knapsack/config.rb', line 16

def spec_pattern
  ENV['KNAPSACK_SPEC_PATTERN'] || 'spec/**/*_spec.rb'
end

.time_offset_in_secondsObject



24
25
26
# File 'lib/knapsack/config.rb', line 24

def time_offset_in_seconds
  30
end