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 | b56f5f1bf71e8d9c773fe9bc4ff6426308e7ef1a (patch) | |
| tree | 9192c3b8c97179d50776854be8741bbbfd09f28b /bin/custodian-enqueue | |
| parent | 70a5bc6c9b887ee3082d03eabf935fadb6bdaf7b (diff) | |
  Read the server address:port from the settings object.  Along with the filename
 if appropriate for logging.
Diffstat (limited to 'bin/custodian-enqueue')
| -rwxr-xr-x | bin/custodian-enqueue | 16 | 
1 files changed, 13 insertions, 3 deletions
| diff --git a/bin/custodian-enqueue b/bin/custodian-enqueue index ad8796f..3a9ac7f 100755 --- a/bin/custodian-enqueue +++ b/bin/custodian-enqueue @@ -50,12 +50,17 @@  # -#  Modules we require +# Standard modules  #  require 'beanstalk-client' -require 'custodian/parser'  require 'getoptlong' +# +# Our code. +# +require 'custodian/parser' +require 'custodian/settings' +  # @@ -65,7 +70,12 @@ if __FILE__ == $0 then    $help   = false    $manual = false -  $SERVER = "127.0.0.1:11300" + +  # +  #  The beanstalkd server address. +  # +  settings = Custodian::Settings.instance() +  $SERVER  = settings.queue_server    begin      opts = GetoptLong.new( | 
