Sha256: b4bd0e9604c6071a816263a36f915c6d9815d138e26c598d0168f8482393aef7

Contents?: true

Size: 545 Bytes

Versions: 10

Compression:

Stored size: 545 Bytes

Contents

module ElVfsClient
  class Engine < Rails::Engine
    isolate_namespace ElVfsClient
    engine_root = File.expand_path("../../../", __FILE__)
    config.after_initialize do
      require 'configliere'

      # NOTE: deprecation warning
      Settings.define 'vfs.url', :env_var => 'VFS_URL'
      Settings.define 'storage.url', :env_var => 'STORAGE_URL'

      if Settings['vfs.url']
        puts ''
        puts '=== DEPRECATION WARNING: Use storage.url instead of vfs.url'
        puts ''
      end

      Settings.resolve!
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
el_vfs_client-0.4.5 lib/el_vfs_client/engine.rb
el_vfs_client-0.4.4 lib/el_vfs_client/engine.rb
el_vfs_client-0.4.3 lib/el_vfs_client/engine.rb
el_vfs_client-0.4.2 lib/el_vfs_client/engine.rb
el_vfs_client-0.4.1 lib/el_vfs_client/engine.rb
el_vfs_client-0.4.0 lib/el_vfs_client/engine.rb
el_vfs_client-0.3.5 lib/el_vfs_client/engine.rb
el_vfs_client-0.3.4 lib/el_vfs_client/engine.rb
el_vfs_client-0.3.3 lib/el_vfs_client/engine.rb
el_vfs_client-0.3.2 lib/el_vfs_client/engine.rb