summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-11-24 14:40:47 +0000
committerSteve Kemp <steve@steve.org.uk>2012-11-24 14:40:47 +0000
commitde3c2b4da2162298e8d016e8c847b190d53d12fa (patch)
tree0ac2c6e8f8bf880f8562ced3b6b7d15206d1d3ec /lib
parent7bfaf7e94eed64dbc1e534e2eee0f9e224e6f146 (diff)
Added new helper to get the alerter.
Diffstat (limited to 'lib')
-rw-r--r--lib/custodian/settings.rb10
1 files changed, 10 insertions, 0 deletions
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