bin/check-pingdom-credits.rb in sensu-plugins-pingdom-0.0.3 vs bin/check-pingdom-credits.rb in sensu-plugins-pingdom-1.0.0
- old
+ new
@@ -66,10 +66,11 @@
default: 1,
proc: proc(&:to_i)
option :timeout,
short: '-t SECS',
- default: 10
+ default: 10,
+ proc: proc(&:to_i)
def run
check_sms!
check_checks! # LOL @ name clashes
ok 'Pingdom credits ok' if sms_ok && checks_ok