Sha256: 1aabe317aed6f82c388039c124fb25d3225e7620f3266a026d529978cab4d99d
Contents?: true
Size: 878 Bytes
Versions: 1
Compression:
Stored size: 878 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 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 require root.join("../../system/<%= config[:underscored_umbrella_name] %>/container").to_s import core: <%= config[:camel_cased_umbrella_name] %>::Container load_paths! "lib" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dry-web-roda-0.14.0 | lib/dry/web/roda/templates/subapp/container.rb.tt |