summaryrefslogtreecommitdiff
path: root/lib/custodian
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-11-24 16:14:25 +0000
committerSteve Kemp <steve@steve.org.uk>2012-11-24 16:14:25 +0000
commit667c17bff529fe1aed656872613edcd12102cb67 (patch)
tree3fd6c833ef0169c567f85f15335689390a5f7f35 /lib/custodian
parent857208e721a778a9f97dc838a935e92d98c7b89d (diff)
Set the alerter-target, if we can find one.
Diffstat (limited to 'lib/custodian')
-rw-r--r--lib/custodian/worker.rb12
1 files changed, 12 insertions, 0 deletions
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.
@@ -161,6 +164,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.
#
# We stop the execution on a single success.