Sha256: 098133e777bbbaf997b6399615381481c8c75258a1d1bd8a2d4a6e950036dff4

Contents?: true

Size: 669 Bytes

Versions: 2

Compression:

Stored size: 669 Bytes

Contents

require "pathname"
require "dry/web/container"

module <%= config[:camel_cased_app_name] %>
  class Container < Dry::Web::Container
    require root.join("system/<%= config[:underscored_umbrella_name] %>/container")
    import core: <%= config[:camel_cased_umbrella_name] %>::Container

    configure do |config|
      config.root = Pathname(__FILE__).join("../..").realpath.dirname.freeze
      config.logger = <%= config[:camel_cased_umbrella_name] %>::Container[:logger]
      config.default_namespace = "<%= config[:underscored_project_name] %>"
      config.auto_register = %w[lib/<%= config[:underscored_project_name] %>]
    end

    load_paths! "lib"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dry-web-roda-0.7.5 lib/dry/web/roda/templates/subapp/container.rb.tt
dry-web-roda-0.7.4 lib/dry/web/roda/templates/subapp/container.rb.tt