summaryrefslogtreecommitdiff
path: root/lib/custodian/settings.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-02-05 11:30:35 +0000
committerSteve Kemp <steve@steve.org.uk>2015-02-05 11:30:35 +0000
commit12740c13dd36045ddbf86626e4b32455be2c5adf (patch)
tree7d8b9d9020246bcd225359472d24ea77b5e87726 /lib/custodian/settings.rb
parent255b03c6c79e3a48e61f7499654e4dd36fdbceb9 (diff)
Simplify code by removing configuration.
We now set the queue-address via $QUEUE_ADDRESS, otherwise we default to localhost. This works for both redis & beanstalkd.
Diffstat (limited to 'lib/custodian/settings.rb')
-rw-r--r--lib/custodian/settings.rb13
1 files changed, 3 insertions, 10 deletions
diff --git a/lib/custodian/settings.rb b/lib/custodian/settings.rb
index 897c099..bef2977 100644
--- a/lib/custodian/settings.rb
+++ b/lib/custodian/settings.rb
@@ -140,18 +140,11 @@ module Custodian
#
- # The address of the queue.
- #
- def queue_server
- _load() unless( _loaded? )
-
- @settings['queue_server'] || "127.0.0.1:11300"
- end
-
-
- #
# The type of queue to use.
#
+ # The hostname/IP address of the queue should be set in the
+ # environmental variable 'QUEUE_ADDRESS'.
+ #
def queue_type
_load() unless( _loaded? )