diff options
author | Alexis Reigel <mail@koffeinfrei.org> | 2017-06-12 17:16:33 +0300 |
---|---|---|
committer | Alexis Reigel <mail@koffeinfrei.org> | 2017-07-27 16:42:53 +0300 |
commit | 7e13d96715750f74db399bf40ee4ec9679bbe806 (patch) | |
tree | b26af883e7055a7d8990bdc2e168117b260bbc7f /lib/gitlab/gpg.rb | |
parent | d1101ec02ec718d0ce15e76217980f6fa21c9089 (diff) |
don't sync to keychain file
Diffstat (limited to 'lib/gitlab/gpg.rb')
-rw-r--r-- | lib/gitlab/gpg.rb | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/gitlab/gpg.rb b/lib/gitlab/gpg.rb index ee0467ae264..384a9138fa1 100644 --- a/lib/gitlab/gpg.rb +++ b/lib/gitlab/gpg.rb @@ -2,24 +2,6 @@ module Gitlab module Gpg extend self - module CurrentKeyChain - extend self - - def add(key) - GPGME::Key.import(key) - end - - def remove(fingerprint) - # `#get` raises an EOFError if the keychain is empty, which is why we - # use the friendlier `#find` - GPGME::Key.find(:public, fingerprint).each(&:delete!) - end - - def emails(fingerprint) - GPGME::Key.find(:public, fingerprint).flat_map { |raw_key| raw_key.uids.map(&:email) } - end - end - def fingerprints_from_key(key) using_tmp_keychain do import = GPGME::Key.import(key) |