Class: Rubysmith::CLI::Configuration::Loader
- Inherits:
-
Object
- Object
- Rubysmith::CLI::Configuration::Loader
- Defined in:
- lib/rubysmith/cli/configuration/loader.rb
Overview
Represents the fully assembled Command Line Interface (CLI) configuration.
Constant Summary collapse
- DEFAULTS =
YAML.load_file(Pathname(__dir__).join("defaults.yml")).freeze
- CLIENT =
Runcom::Config.new "#{Identity::NAME}/configuration.yml", defaults: DEFAULTS
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(content: Content.new, client: CLIENT) ⇒ Loader
constructor
A new instance of Loader.
Constructor Details
Class Method Details
.call ⇒ Object
20 |
# File 'lib/rubysmith/cli/configuration/loader.rb', line 20 def self.call = new.call |
Instance Method Details
#call ⇒ Object
27 |
# File 'lib/rubysmith/cli/configuration/loader.rb', line 27 def call = content.merge(**client.to_h.flatten_keys) |