Class: DataChecks::Runner
- Inherits:
-
Object
- Object
- DataChecks::Runner
- Defined in:
- lib/data_checks/runner.rb
Instance Method Summary collapse
Instance Method Details
#run_check(name) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/data_checks/runner.rb', line 14 def run_check(name) checks = DataChecks.config.checks check = checks.find { |c| c.name == name.to_s } raise "Check #{name} not found" unless check run_one(check) end |
#run_checks(tag: nil) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/data_checks/runner.rb', line 5 def run_checks(tag: nil) checks = DataChecks.config.checks checks = checks.select { |check| check.tag == tag.to_s } if tag checks.each do |check| run_one(check) end end |