Class: Fettle::Checker

Inherits:
Object
  • Object
show all
Defined in:
lib/fettle/checker.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tag) ⇒ Checker

Returns a new instance of Checker.



10
11
12
# File 'lib/fettle/checker.rb', line 10

def initialize(tag)
  @tag = tag
end

Class Method Details

.run(tag: nil) ⇒ Object



14
15
16
# File 'lib/fettle/checker.rb', line 14

def self.run(tag: nil)
  new(tag).run
end

Instance Method Details

#runObject



18
19
20
21
22
# File 'lib/fettle/checker.rb', line 18

def run
  check_result_class.new(
    checks.map(&method(:run_check)).all?
  )
end