Sha256: a992c582a128bb6bc47ea0d6399e5e9bcb6839f3a541d17575ec77f4bd8aedf5

Contents?: true

Size: 867 Bytes

Versions: 9

Compression:

Stored size: 867 Bytes

Contents

require "pathname"
require "dry/web/container"
require "dry/system/components"

module <%= config[:camel_cased_umbrella_name] %>
  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_umbrella_name] %>.<%= config[:underscored_project_name] %>"
        config.auto_register = %w[lib/<%= config[:underscored_umbrella_name] %>/<%= config[:underscored_project_name] %>]
      end

      load_paths! "lib"
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
dry-web-web_pipe-0.2.0 lib/dry/web/web_pipe/templates/subapp/container.rb.tt
dry-web-roda-0.13.1 lib/dry/web/roda/templates/subapp/container.rb.tt
dry-web-roda-0.13.0 lib/dry/web/roda/templates/subapp/container.rb.tt
dry-web-web_pipe-0.1.0 lib/dry/web/web_pipe/templates/subapp/container.rb.tt
dry-web-roda-0.12.0 lib/dry/web/roda/templates/subapp/container.rb.tt
dry-web-roda-0.11.0 lib/dry/web/roda/templates/subapp/container.rb.tt
dry-web-roda-0.10.0 lib/dry/web/roda/templates/subapp/container.rb.tt
dry-web-roda-0.9.1 lib/dry/web/roda/templates/subapp/container.rb.tt
dry-web-roda-0.9.0 lib/dry/web/roda/templates/subapp/container.rb.tt