Method: Doing::WWID#configure
- Defined in:
- lib/doing/wwid/wwidutil.rb
#configure(filename = nil) ⇒ Object
Load configuration files and updated the @settings attribute with a Doing::Configuration object
56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/doing/wwid/wwidutil.rb', line 56 def configure(filename = nil) logger.benchmark(:configure, :start) if filename Doing.config_with(filename, { ignore_local: true }) elsif ENV['DOING_CONFIG'] Doing.config_with(ENV['DOING_CONFIG'], { ignore_local: true }) end logger.benchmark(:configure, :finish) Doing.set('backup_dir', ENV['DOING_BACKUP_DIR']) if ENV['DOING_BACKUP_DIR'] end |