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

Version Path
eac_cli-0.42.0 lib/eac_cli/old_configs/store_passwords_entry_reader.rb
eac_cli-0.40.1 lib/eac_cli/old_configs/store_passwords_entry_reader.rb
eac_cli-0.40.0 lib/eac_cli/old_configs/store_passwords_entry_reader.rb
eac_cli-0.39.0 lib/eac_cli/old_configs/store_passwords_entry_reader.rb
eac_cli-0.38.1 lib/eac_cli/old_configs/store_passwords_entry_reader.rb
eac_tools-0.82.0 sub/eac_cli/lib/eac_cli/old_configs/store_passwords_entry_reader.rb
eac_tools-0.81.0 sub/eac_cli/lib/eac_cli/old_configs/store_passwords_entry_reader.rb
eac_tools-0.80.0 sub/eac_cli/lib/eac_cli/old_configs/store_passwords_entry_reader.rb
eac_tools-0.79.0 sub/eac_cli/lib/eac_cli/old_configs/store_passwords_entry_reader.rb
eac_tools-0.78.0 sub/eac_cli/lib/eac_cli/old_configs/store_passwords_entry_reader.rb
eac_tools-0.77.1 sub/eac_cli/lib/eac_cli/old_configs/store_passwords_entry_reader.rb
eac_tools-0.77.0 sub/eac_cli/lib/eac_cli/old_configs/store_passwords_entry_reader.rb
eac_cli-0.38.0 lib/eac_cli/old_configs/store_passwords_entry_reader.rb
eac_tools-0.76.1 sub/eac_cli/lib/eac_cli/old_configs/store_passwords_entry_reader.rb