summaryrefslogtreecommitdiff
path: root/lib/custodian
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2013-04-23 10:07:06 +0100
committerSteve Kemp <steve@steve.org.uk>2013-04-23 10:07:06 +0100
commita0d2c8e40e3de2a02226f921ecfb8bde363d116b (patch)
tree99aa995c34048cd8727e39f6770fcc1f65cc2061 /lib/custodian
parente9b33a69f09a5408e2fb879f7fec2eaa68b5ca9e (diff)
Allow the settings object to retrieve the name of the beanstalkd tube.
Diffstat (limited to 'lib/custodian')
-rw-r--r--lib/custodian/settings.rb10
1 files changed, 10 insertions, 0 deletions
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
+
+
#