summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-01-21 16:50:34 +0000
committerSteve Kemp <steve@steve.org.uk>2015-01-21 16:50:34 +0000
commit168044a4b1af40a5b4b7b54eb2973455377da722 (patch)
tree79809dbd927e372badb6aa4660fd2828cf30cf4e /lib
parenteb4affc278f690c1b2befbb6faab917dea6bde94 (diff)
Added accessor for the queue-type.
Default to redis as this is more likely to be installed.
Diffstat (limited to 'lib')
-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 edbd798..897c099 100644
--- a/lib/custodian/settings.rb
+++ b/lib/custodian/settings.rb
@@ -149,6 +149,16 @@ module Custodian
end
+ #
+ # The type of queue to use.
+ #
+ def queue_type
+ _load() unless( _loaded? )
+
+ @settings['queue_type'] || "redis"
+ end
+
+
#
# The filename for the logfile.