Class: Gesund::CheckRunner
- Inherits:
-
Object
- Object
- Gesund::CheckRunner
- Defined in:
- lib/gesund/check_runner.rb
Class Method Summary collapse
Class Method Details
.run(checks) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/gesund/check_runner.rb', line 2 def self.run(checks) results = [] checks.each do |check| begin results << check.call rescue => e # check failed results << [500, {}, ["ERROR: #{e.class}: #{e.}"]] end end return results end |