summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--etc/custodian/custodian.cfg6
-rw-r--r--lib/custodian/settings.rb10
2 files changed, 16 insertions, 0 deletions
diff --git a/etc/custodian/custodian.cfg b/etc/custodian/custodian.cfg
index 1a03613..3f6be17 100644
--- a/etc/custodian/custodian.cfg
+++ b/etc/custodian/custodian.cfg
@@ -13,6 +13,12 @@
##
+##
+# The name of the beanstalkd tube we'll use
+#
+# queue_name = Custodian
+##
+
##
# The alerting method to use
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
+
+
#