Class: Oncall::Core::Config
- Inherits:
-
Object
- Object
- Oncall::Core::Config
- Defined in:
- lib/oncall/core/config.rb
Constant Summary collapse
- DEFAULT_PATTERN =
'**{,/*/**}/*_oncall.rb'.freeze
Instance Method Summary collapse
- #domain ⇒ Object
- #failure_exit_code ⇒ Object
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #pattern ⇒ Object
- #port ⇒ Object
- #test_files ⇒ Object
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
6 7 8 |
# File 'lib/oncall/core/config.rb', line 6 def initialize @files = [] end |
Instance Method Details
#domain ⇒ Object
18 19 20 |
# File 'lib/oncall/core/config.rb', line 18 def domain 'localhost' end |
#failure_exit_code ⇒ Object
14 15 16 |
# File 'lib/oncall/core/config.rb', line 14 def failure_exit_code 1 end |
#pattern ⇒ Object
10 11 12 |
# File 'lib/oncall/core/config.rb', line 10 def pattern DEFAULT_PATTERN end |
#port ⇒ Object
22 23 24 |
# File 'lib/oncall/core/config.rb', line 22 def port 4567 end |
#test_files ⇒ Object
26 27 28 |
# File 'lib/oncall/core/config.rb', line 26 def test_files Dir.glob(pattern) end |