Class: Steto::BeepReporter
- Inherits:
-
Object
- Object
- Steto::BeepReporter
- Defined in:
- lib/steto/beep_reporter.rb
Instance Method Summary collapse
Instance Method Details
#beep(count = 1) ⇒ Object
11 12 13 |
# File 'lib/steto/beep_reporter.rb', line 11 def beep(count = 1) system "beep -r #{count}" end |
#report(checks) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/steto/beep_reporter.rb', line 3 def report(checks) if checks.any? { |c| c.status.critical? } beep 2 elsif checks.any? { |c| c.status.warning? } beep end end |