lib/city_watch/util/alerts.rb in city-watch-0.5.7 vs lib/city_watch/util/alerts.rb in city-watch-0.5.8
- old
+ new
@@ -18,10 +18,10 @@
def get_alerts(host=host,num=5)
CityWatch.redis.zrevrange "#{CityWatch.config[:prefix]}::#{host}::#{self.name}::alerts", 0, num - 1
end
- def send_alerts!
+ def send_alerts!(*args)
get_alerts.map do |alert|
puts "Alert: #{alert.inspect}" if CityWatch.debug?
end
end
\ No newline at end of file