summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2013-04-23 10:11:35 +0100
committerSteve Kemp <steve@steve.org.uk>2013-04-23 10:11:35 +0100
commit2ee023e6a37631ca4bedf6b6a4341b75e7bd907c (patch)
tree1af117a828f7c62b9738dbc76cbac23180ac1f20
parenta0d2c8e40e3de2a02226f921ecfb8bde363d116b (diff)
The name of the beanstalkd tube is passed into the constructor now.
-rw-r--r--lib/custodian/worker.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/custodian/worker.rb b/lib/custodian/worker.rb
index 5219a5b..cea07d8 100644
--- a/lib/custodian/worker.rb
+++ b/lib/custodian/worker.rb
@@ -72,10 +72,10 @@ module Custodian
#
# Constructor: Connect to the queue
#
- def initialize( server, alerter, logfile, settings )
+ def initialize( server, queue, alerter, logfile, settings )
# Connect to the queue
- @queue = Beanstalk::Pool.new([server], "Custodian" )
+ @queue = Beanstalk::Pool.new([server], queue )
# Get the alerter-type to instantiate
@alerter = alerter