Class: SshSig::KeyLoader::Http

Inherits:
PubKey
  • Object
show all
Defined in:
lib/ssh_sig/key_loader/http.rb

Constant Summary

Constants inherited from PubKey

PubKey::SUPPORTED_KEY_ALGORITHMS

Class Method Summary collapse

Class Method Details

.load(url) ⇒ Object



9
10
11
12
13
# File 'lib/ssh_sig/key_loader/http.rb', line 9

def load(url)
  keys = get(url)

  super(keys)
end

.load_dot_keys(username, base_addr = 'https://gitlab.com') ⇒ Object



15
16
17
# File 'lib/ssh_sig/key_loader/http.rb', line 15

def load_dot_keys(username, base_addr = 'https://gitlab.com')
  load("#{base_addr}/#{username}.keys")
end