Module: Fettle::Configuration
- Defined in:
- lib/fettle/configuration.rb
Class Method Summary collapse
- .add_check(check) ⇒ Object
- .checks ⇒ Object
- .clear_checks! ⇒ Object
- .configure {|_self| ... } ⇒ Object
Class Method Details
.add_check(check) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/fettle/configuration.rb', line 9 def add_check(check) require "fettle/checks/#{check}_check" klass = Fettle::Checks.const_get( "#{check}_check".split('_').map(&:capitalize).join('') ) checks << klass end |
.checks ⇒ Object
19 20 21 |
# File 'lib/fettle/configuration.rb', line 19 def checks @checks ||= [] end |
.clear_checks! ⇒ Object
23 24 25 |
# File 'lib/fettle/configuration.rb', line 23 def clear_checks! @checks = [] end |
.configure {|_self| ... } ⇒ Object
5 6 7 |
# File 'lib/fettle/configuration.rb', line 5 def configure yield self end |