Sha256: 100f2884b9d7159279e423b131d5800f5df888f8cf4c45e6c36216e08cc1605a
Contents?: true
Size: 684 Bytes
Versions: 3
Compression:
Stored size: 684 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 <%= 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_app_name] %>" config.auto_register = %w[ lib/<%= config[:underscored_app_name] %> ] end load_paths! "lib", "system" end end
Version data entries
3 entries across 3 versions & 1 rubygems