From 6a8dc812bdcc1a8a40da523e192e2820b2abafda Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Thu, 11 Jul 2013 12:11:15 +0100 Subject: Added new global variable "alert_source", for use with mauve-notification. --- lib/custodian/settings.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/custodian') 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 @@ -180,6 +180,16 @@ module Custodian end + # + # 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. # -- cgit v1.2.1