summaryrefslogtreecommitdiff
path: root/lib/custodian
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2013-07-11 12:11:15 +0100
committerSteve Kemp <steve@steve.org.uk>2013-07-11 12:11:15 +0100
commit6a8dc812bdcc1a8a40da523e192e2820b2abafda (patch)
treee2cdcaf21d94fa423eea31e82ba34979aa49094d /lib/custodian
parent88511e9293fa1125706eecce2363780433ff7fd7 (diff)
Added new global variable "alert_source", for use with
mauve-notification.
Diffstat (limited to 'lib/custodian')
-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 f177083..2d4465d 100644
--- a/lib/custodian/settings.rb
+++ b/lib/custodian/settings.rb
@@ -181,6 +181,16 @@ module Custodian
#
+ # The alert-source we send. Only used when the notifier is set to mauve.
+ #
+ def alert_source
+ _load() unless( _loaded? )
+
+ @settings['alert_source'] || "Custodian"
+ end
+
+
+ #
# The target for the alert.
#
# When the alerter is "smtp" the target is the mail address.