diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-12-30 15:14:01 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-12-30 15:14:01 +0300 |
commit | 0409f2aea9d4085ebcd12d36db7cc32149eba807 (patch) | |
tree | 0c2fe8a36db17761df3ed7337ffcd65a72b1f194 /lib/gitlab/ssh_public_key.rb | |
parent | 16470e34880dc62234606b3f7efd2aa78a396826 (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.rb | 4 |
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 |