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:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-12-30 15:14:01 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-12-30 15:14:01 +0300
commit0409f2aea9d4085ebcd12d36db7cc32149eba807 (patch)
tree0c2fe8a36db17761df3ed7337ffcd65a72b1f194 /lib/gitlab/ssh_public_key.rb
parent16470e34880dc62234606b3f7efd2aa78a396826 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/ssh_public_key.rb')
-rw-r--r--lib/gitlab/ssh_public_key.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/ssh_public_key.rb b/lib/gitlab/ssh_public_key.rb
index 6df54852d02..e51ec38394d 100644
--- a/lib/gitlab/ssh_public_key.rb
+++ b/lib/gitlab/ssh_public_key.rb
@@ -19,6 +19,10 @@ module Gitlab
TECHNOLOGIES.find { |tech| key.is_a?(tech.key_class) }
end
+ def self.supported_types
+ TECHNOLOGIES.map(&:name)
+ end
+
def self.supported_sizes(name)
technology(name)&.supported_sizes
end