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

#domainObject



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

def domain
  'localhost'
end

#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

#portObject



22
23
24
# File 'lib/oncall/core/config.rb', line 22

def port
  4567
end

#test_filesObject



26
27
28
# File 'lib/oncall/core/config.rb', line 26

def test_files
  Dir.glob(pattern)
end