Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Reigel <mail@koffeinfrei.org>2017-06-12 17:16:33 +0300
committerAlexis Reigel <mail@koffeinfrei.org>2017-07-27 16:42:53 +0300
commit7e13d96715750f74db399bf40ee4ec9679bbe806 (patch)
treeb26af883e7055a7d8990bdc2e168117b260bbc7f /lib/gitlab/gpg.rb
parentd1101ec02ec718d0ce15e76217980f6fa21c9089 (diff)
don't sync to keychain file
Diffstat (limited to 'lib/gitlab/gpg.rb')
-rw-r--r--lib/gitlab/gpg.rb18
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)