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