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.
14 15 16 17 |
# File 'lib/eac_cli/old_configs.rb', line 14 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.
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, = {}) ::EacCli::OldConfigs::EntryReader.new(self, entry_key, ).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, = {}) ::EacCli::OldConfigs::PasswordEntryReader.new(self, entry_key, ).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 |