From a4df3a26820433eb2f1e15ccefa6175c6bd3b8d4 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Sat, 24 Nov 2012 16:14:25 +0000 Subject: Set the alerter-target, if we can find one. --- lib/custodian/worker.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lib/custodian') diff --git a/lib/custodian/worker.rb b/lib/custodian/worker.rb index 763805f..1f72eec 100644 --- a/lib/custodian/worker.rb +++ b/lib/custodian/worker.rb @@ -12,6 +12,9 @@ require 'logger' # Our modules. # require 'custodian/alerts' +require 'custodian/settings' + + # # This list of all our protocol tests. @@ -160,6 +163,15 @@ module Custodian # alert = Custodian::AlertFactory.create( @alerter, test ) + # + # Set the target for the alert, which might be nil. + # + alert.set_target( Custodian::Settings.instance().alerter_target() ) + + + + + # # We'll run no more than MAX times. # -- cgit v1.2.1