summaryrefslogtreecommitdiff
path: root/lib/custodian/worker.rb
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
commita4df3a26820433eb2f1e15ccefa6175c6bd3b8d4 (patch)
tree3fd6c833ef0169c567f85f15335689390a5f7f35 /lib/custodian/worker.rb
parentf8f86a0321f82e816a93e6e531d4680dc0f7a587 (diff)
Set the alerter-target, if we can find one.
Diffstat (limited to 'lib/custodian/worker.rb')
-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.