Sha256: b2f93da6975af92132ac1510609569f77e5426b28553e993d210db1f2619cb7d
Contents?: true
Size: 897 Bytes
Versions: 4
Compression:
Stored size: 897 Bytes
Contents
require 'zeitwerk' require 'dry-system' module Hanamimastery module CLI class Container < Dry::System::Container use :zeitwerk configure do |config| root = File.expand_path("../../..", __dir__) config.root = root config.autoloader.tag = "hanamimastery-cli" config.autoloader.inflector = Zeitwerk::GemInflector.new("#{root}/hanamimastery-cli.rb") config.autoloader.push_dir(root) config.autoloader.ignore( "#{root}/hanamimastery-cli.rb", "#{root}/hanamimastery/cli/{errors,version,deps,container}.rb" ) config.inflector = Dry::Inflector.new do |inflections| inflections.acronym('CLI') inflections.acronym('PRO') end config.component_dirs.add 'lib' do |dir| dir.namespaces.add "hanamimastery/cli", key: nil end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems