Sha256: 36d0772a5179026bc1d368f37d2db5946310db35a7830be648eef6e9e98f8f04
Contents?: true
Size: 699 Bytes
Versions: 14
Compression:
Stored size: 699 Bytes
Contents
# frozen_string_literal: true require 'eac_cli/old_configs/entry_reader' module EacCli class OldConfigs class StorePasswordsEntryReader < ::EacCli::OldConfigs::EntryReader ENTRY_KEY = 'core.store_passwords' def initialize(console_configs) super(console_configs, ENTRY_KEY, before_input: -> { banner }, validator: ->(entry_value) { %w[yes no].include?(entry_value) } ) end def banner infom 'Do you wanna to store passwords?' infom 'Warning: the passwords will be store in clear text in ' \ "\"#{console_configs.configs.storage_path}\"" infom 'Enter "yes" or "no"' end end end end
Version data entries
14 entries across 14 versions & 2 rubygems