Sha256: 40d13b74ce2d049fad410dcc32ea5280fb1ddbaec2f4e501f813a8610d2691cd
Contents?: true
Size: 510 Bytes
Versions: 29
Compression:
Stored size: 510 Bytes
Contents
require 'fog/digitalocean/models/compute/ssh_key' module Fog module Compute class DigitalOcean class SshKeys < Fog::Collection identity :href model Fog::Compute::DigitalOcean::SshKey def all data = service.list_ssh_keys.body['ssh_keys'] load(data) end def get(uri) data = service.get_ssh_key(uri).body['ssh_key'] new(data) rescue Fog::Errors::NotFound nil end end end end end
Version data entries
29 entries across 29 versions & 4 rubygems