Sha256: 601d142261821119a4d018ccc7eb98b61bfce1b688491eb7a1e46cc3aaae00bc
Contents?: true
Size: 728 Bytes
Versions: 5
Compression:
Stored size: 728 Bytes
Contents
require 'sym/app/commands/base_command' require 'sym/app/keychain' require 'sym/errors' module Sym module App module Commands class KeychainAddKey < BaseCommand required_options [:key, :interactive], :keychain incompatible_options %i(examples help version bash_support) try_after :generate_key, :encrypt, :decrypt, :password_protect_key def execute if Sym.default_key? && Sym.default_key == self.key raise 'Refusing to import key specified in the default key file ' + Sym.default_key_file.italic end add_to_keychain_if_needed(self.key) self.key unless opts[:quiet] end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems