Sha256: 024fae209aaeb01f5ff086ca88adeb499dd043fb572d44cd1c46a2f5b3bc086c
Contents?: true
Size: 948 Bytes
Versions: 8
Compression:
Stored size: 948 Bytes
Contents
# frozen_string_literal: true require 'eac_ruby_utils/core_ext' require 'eac_cli/patches/module/speaker' module EacCli class OldConfigs require_sub __FILE__ enable_speaker class << self def entry_key_to_envvar_name(entry_key) ::EacCli::OldConfigs::EntryReader.entry_key_to_envvar_name(entry_key) end end attr_reader :configs def initialize(configs_key, options = {}) options.assert_argument(::Hash, 'options') @configs = ::EacConfig::OldConfigs.new(configs_key, options.merge(autosave: true)) end def read_password(entry_key, options = {}) ::EacCli::OldConfigs::PasswordEntryReader.new(self, entry_key, options).read end def read_entry(entry_key, options = {}) ::EacCli::OldConfigs::EntryReader.new(self, entry_key, options).read end def store_passwords? ::EacCli::OldConfigs::StorePasswordsEntryReader.new(self) == 'yes' end end end
Version data entries
8 entries across 8 versions & 3 rubygems