Class: EacCli::OldConfigs
- 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
-
#configs ⇒ Object
readonly
Returns the value of attribute configs.
Instance Method Summary collapse
-
#initialize(configs_key, options = {}) ⇒ OldConfigs
constructor
A new instance of OldConfigs.
- #read_entry(entry_key, options = {}) ⇒ Object
- #read_password(entry_key, options = {}) ⇒ Object
- #store_passwords? ⇒ Boolean
Constructor Details
#initialize(configs_key, options = {}) ⇒ OldConfigs
Returns a new instance of OldConfigs.
13 14 15 16 |
# File 'lib/eac_cli/old_configs.rb', line 13 def initialize(configs_key, = {}) .assert_argument(::Hash, 'options') @configs = ::EacConfig::OldConfigs.new(configs_key, .merge(autosave: true)) end |
Instance Attribute Details
#configs ⇒ Object (readonly)
Returns the value of attribute configs.
11 12 13 |
# File 'lib/eac_cli/old_configs.rb', line 11 def configs @configs end |
Instance Method Details
#read_entry(entry_key, options = {}) ⇒ Object
22 23 24 |
# File 'lib/eac_cli/old_configs.rb', line 22 def read_entry(entry_key, = {}) ::EacCli::OldConfigs::EntryReader.new(self, entry_key, ).read end |
#read_password(entry_key, options = {}) ⇒ Object
18 19 20 |
# File 'lib/eac_cli/old_configs.rb', line 18 def read_password(entry_key, = {}) ::EacCli::OldConfigs::PasswordEntryReader.new(self, entry_key, ).read end |
#store_passwords? ⇒ Boolean
26 27 28 |
# File 'lib/eac_cli/old_configs.rb', line 26 def store_passwords? ::EacCli::OldConfigs::StorePasswordsEntryReader.new(self) == 'yes' end |