Class: EacCli::OldConfigs
- Inherits:
-
Object
show all
- Defined in:
- lib/eac_cli/old_configs.rb,
lib/eac_cli/old_configs/entry_reader.rb,
lib/eac_cli/old_configs/read_entry_options.rb,
lib/eac_cli/old_configs/password_entry_reader.rb,
lib/eac_cli/old_configs/store_passwords_entry_reader.rb
Defined Under Namespace
Classes: EntryReader, PasswordEntryReader, ReadEntryOptions, StorePasswordsEntryReader
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
#initialize(configs_key, options = {}) ⇒ OldConfigs
Returns a new instance of OldConfigs.
18
19
20
21
|
# File 'lib/eac_cli/old_configs.rb', line 18
def initialize(configs_key, options = {})
options.assert_argument(::Hash, 'options')
@configs = ::EacConfig::OldConfigs.new(configs_key, options.merge(autosave: true))
end
|
Instance Attribute Details
Returns the value of attribute configs.
16
17
18
|
# File 'lib/eac_cli/old_configs.rb', line 16
def configs
@configs
end
|
Class Method Details
.entry_key_to_envvar_name(entry_key) ⇒ Object
Instance Method Details
#read_entry(entry_key, options = {}) ⇒ Object
27
28
29
|
# File 'lib/eac_cli/old_configs.rb', line 27
def read_entry(entry_key, options = {})
::EacCli::OldConfigs::EntryReader.new(self, entry_key, options).read
end
|
#read_password(entry_key, options = {}) ⇒ Object
#store_passwords? ⇒ Boolean