diff options
Diffstat (limited to 'lib/gitlab_net.rb')
-rw-r--r-- | lib/gitlab_net.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/gitlab_net.rb b/lib/gitlab_net.rb index 71e113b..ddf2a06 100644 --- a/lib/gitlab_net.rb +++ b/lib/gitlab_net.rb @@ -56,6 +56,11 @@ class GitlabNet get("#{host}/check", read_timeout: CHECK_TIMEOUT) end + def ssh_key(fingerprint) + resp = get("#{host}/ssh-key?fingerprint=#{fingerprint}") + JSON.parse(resp.body) rescue nil + end + protected def config |