Class: Oncall::Core::Config

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

Constant Summary collapse

DEFAULT_PATTERN =
'**{,/*/**}/*_oncall.rb'.freeze

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



6
7
8
# File 'lib/oncall/core/config.rb', line 6

def initialize
  @files = []
end

Instance Method Details

#failure_exit_codeObject



14
15
16
# File 'lib/oncall/core/config.rb', line 14

def failure_exit_code
  1
end

#patternObject



10
11
12
# File 'lib/oncall/core/config.rb', line 10

def pattern
  DEFAULT_PATTERN
end

#test_filesObject



18
19
20
# File 'lib/oncall/core/config.rb', line 18

def test_files
  Dir.glob(pattern)
end