diff options
| author | Steve Kemp <steve@steve.org.uk> | 2012-11-23 14:57:52 +0000 | 
|---|---|---|
| committer | Steve Kemp <steve@steve.org.uk> | 2012-11-23 14:57:52 +0000 | 
| commit | 017e20155e9dc40e4a006df862804b3fbd1acefd (patch) | |
| tree | 9192c3b8c97179d50776854be8741bbbfd09f28b /bin/custodian-dequeue | |
| parent | 050ebab1146a1d8607513ce67ddfe0821afce5a2 (diff) | |
  Read the server address:port from the settings object.  Along with the filename
 if appropriate for logging.
Diffstat (limited to 'bin/custodian-dequeue')
| -rwxr-xr-x | bin/custodian-dequeue | 10 | 
1 files changed, 8 insertions, 2 deletions
| diff --git a/bin/custodian-dequeue b/bin/custodian-dequeue index 2d907f4..e33e253 100755 --- a/bin/custodian-dequeue +++ b/bin/custodian-dequeue @@ -55,6 +55,7 @@ require 'getoptlong'  #  # Our code.  # +require 'custodian/settings.rb'  require 'custodian/worker.rb' @@ -65,11 +66,16 @@ require 'custodian/worker.rb'  #  if __FILE__ == $0 then -  $SERVER  = "127.0.0.1:11300" -  $LOGFILE = "custodian-dequeue.log"    $help    = false    $manual  = false +  # +  #  The beanstalkd server address, and logfile. +  # +  settings = Custodian::Settings.instance() +  $SERVER  = settings.queue_server +  $LOGFILE = setttings.log_file +    begin      opts = GetoptLong.new(                            [ "--help",    "-h", GetoptLong::NO_ARGUMENT ], | 
