From 168044a4b1af40a5b4b7b54eb2973455377da722 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(+) (limited to 'lib') 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