From 4444995b23c818ead1bfbd18dff2c5be202a518b Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Sat, 24 Nov 2012 14:40:47 +0000 Subject: Added new helper to get the alerter. --- lib/custodian/settings.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/custodian/settings.rb b/lib/custodian/settings.rb index cdc1b6d..09bf043 100644 --- a/lib/custodian/settings.rb +++ b/lib/custodian/settings.rb @@ -106,5 +106,15 @@ module Custodian end + # + # The alerter to use + # + def alerter + _load() unless( _loaded? ) + + @settings['alerter'] || "smtp" + end + + end end -- cgit v1.2.1