Sha256: 79a49fa8f5a7d1e2c2f937530cbec7fc70aa6f1380298b0ed88feb54c10c964b
Contents?: true
Size: 642 Bytes
Versions: 4
Compression:
Stored size: 642 Bytes
Contents
# frozen_string_literal: true require "pathname" require "refinements/hashes" require "runcom" require "yaml" module Rubysmith module CLI # Represents the fully assembled Command Line Interface (CLI) configuration. class Configuration using Refinements::Hashes DEFAULTS = YAML.load_file(Pathname(__dir__).join("defaults.yml")).freeze CLIENT = Runcom::Config.new "#{Identity::NAME}/configuration.yml", defaults: DEFAULTS def initialize client: CLIENT @client = client end def to_h client.to_h.flatten_keys end private attr_reader :client end end end
Version data entries
4 entries across 4 versions & 1 rubygems