From a0d2c8e40e3de2a02226f921ecfb8bde363d116b Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Tue, 23 Apr 2013 10:07:06 +0100 Subject: Allow the settings object to retrieve the name of the beanstalkd tube. --- 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 9ec0867..b37e9e4 100644 --- a/lib/custodian/settings.rb +++ b/lib/custodian/settings.rb @@ -101,6 +101,16 @@ module Custodian end + # + # The name of the beanstalkd tube we'll use + # + def queue_name + _load() unless( _loaded? ) + + @settings['queue_name'] || "Custodian" + end + + # -- cgit v1.2.1