diff options
author | Azul <azul@riseup.net> | 2014-02-04 09:16:19 +0100 |
---|---|---|
committer | Azul <azul@riseup.net> | 2014-02-04 11:46:57 +0100 |
commit | ee4f24abf2a7848a015cfb02bfbdebf7b0874d8e (patch) | |
tree | 5ec140a864562ecf789fdc9faebbe0cff9f96ce6 /lib/tapicero.rb | |
parent | cbf35664160a57da4c96796e99911b982afacba2 (diff) |
hand config files on the command line to the daemon
Diffstat (limited to 'lib/tapicero.rb')
-rw-r--r-- | lib/tapicero.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/tapicero.rb b/lib/tapicero.rb index 0c7007f..390257d 100644 --- a/lib/tapicero.rb +++ b/lib/tapicero.rb @@ -1,9 +1,6 @@ unless defined? BASE_DIR BASE_DIR = Pathname.new(__FILE__) + '../..' end -unless defined? TAPICERO_CONFIG - TAPICERO_CONFIG = '/etc/leap/tapicero.yaml' -end module Tapicero class <<self @@ -18,8 +15,7 @@ module Tapicero # defined before the models are defined. # require 'couchrest/changes' - configs = ['config/default.yaml', TAPICERO_CONFIG, ARGV.grep(/\.ya?ml$/).first] - self.config = CouchRest::Changes::Config.load(BASE_DIR, *configs) + self.config = CouchRest::Changes::Config.load(BASE_DIR, *CONFIGS) self.logger = CouchRest::Changes::Config.logger # hand flags over to CouchRest::Changes |