From e2f50b48e8e3055c65987756ca1997772fd31b73 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Wed, 21 Jan 2015 16:50:34 +0000 Subject: Added accessor for the queue-type. Default to redis as this is more likely to be installed. --- lib/custodian/settings.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) 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. -- cgit v1.2.1