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
Instance Method Summary
collapse
Constructor Details
#initialize(configs_key, options = {}) ⇒ OldConfigs
14
15
16
17
|
# File 'lib/eac_cli/old_configs.rb', line 14
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.
12
13
14
|
# File 'lib/eac_cli/old_configs.rb', line 12
def configs
@configs
end
|
Instance Method Details
#read_entry(entry_key, options = {}) ⇒ Object
23
24
25
|
# File 'lib/eac_cli/old_configs.rb', line 23
def read_entry(entry_key, options = {})
::EacCli::OldConfigs::EntryReader.new(self, entry_key, options).read
end
|
#read_password(entry_key, options = {}) ⇒ Object
19
20
21
|
# File 'lib/eac_cli/old_configs.rb', line 19
def read_password(entry_key, options = {})
::EacCli::OldConfigs::PasswordEntryReader.new(self, entry_key, options).read
end
|
#store_passwords? ⇒ Boolean
27
28
29
|
# File 'lib/eac_cli/old_configs.rb', line 27
def store_passwords?
::EacCli::OldConfigs::StorePasswordsEntryReader.new(self) == 'yes'
end
|