Module: Fettle::Configuration

Defined in:
lib/fettle/configuration.rb

Class Method Summary collapse

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

.checksObject



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

Yields:

  • (_self)

Yield Parameters:



5
6
7
# File 'lib/fettle/configuration.rb', line 5

def configure
  yield self
end