Sha256: a450f999607107cf16d412bc9e704fbd6db3e15b52577bf5d115a8dfe095f7b6

Contents?: true

Size: 434 Bytes

Versions: 5

Compression:

Stored size: 434 Bytes

Contents

require 'sym/app/commands/base_command'
require 'sym/app/keychain'
module Sym
  module App
    module Commands
      class KeychainAddKey < BaseCommand

        required_options [:private_key, :keyfile, :interactive],
                         :keychain

        try_after :generate_key, :encrypt_decrypt, :password_protect_key

        def execute
          add_to_keychain_if_needed(self.key)
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sym-2.2.1 lib/sym/app/commands/keychain_add_key.rb
sym-2.2.0 lib/sym/app/commands/keychain_add_key.rb
sym-2.1.2 lib/sym/app/commands/keychain_add_key.rb
sym-2.1.1 lib/sym/app/commands/keychain_add_key.rb
sym-2.1.0 lib/sym/app/commands/keychain_add_key.rb