lib/routemaster/config.rb in routemaster-drain-1.0.5 vs lib/routemaster/config.rb in routemaster-drain-1.1.0
- old
+ new
@@ -35,9 +35,13 @@
result[Regexp.new(host)] = [username, password]
end
end
end
+ def queue_adapter
+ ENV.fetch('ROUTEMASTER_QUEUE_ADAPTER', 'resque').to_sym
+ end
+
def queue_name
ENV.fetch('ROUTEMASTER_QUEUE_NAME', 'routemaster')
end
def drain_tokens