Sha256: 2ec209318244170f3b668e781f78c3be9a2c8b4484e5c8d5235741250f94989a

Contents?: true

Size: 602 Bytes

Versions: 3

Compression:

Stored size: 602 Bytes

Contents

require_relative 'boot'

module Inferno
  class Application < Dry::System::Container
    ::Inferno::Import = injector

    use :env, inferrer: -> { ENV.fetch('APP_ENV', :development).to_sym }

    configure do |config|
      config.root = File.expand_path('../../..', __dir__)
      config.default_namespace = 'inferno'
      config.system_dir = File.join('lib', 'inferno', 'config')
      config.bootable_dirs = [File.join('lib', 'inferno', 'config', 'boot')]

      config.auto_register = 'lib'
    end

    Application.register('js_host', ENV.fetch('JS_HOST', ''))

    load_paths!('lib')
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
inferno_core-0.0.3 lib/inferno/config/application.rb
inferno_core-0.0.2 lib/inferno/config/application.rb
inferno_core-0.0.1 lib/inferno/config/application.rb