Sha256: 9594af883b1f56a15cb494e39592633fdbf9fd5825948b091f91fb55a4431007
Contents?: true
Size: 520 Bytes
Versions: 14
Compression:
Stored size: 520 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) if data = service.get_ssh_key(uri) new(data.body) end rescue Fog::Errors::NotFound nil end end end end end
Version data entries
14 entries across 14 versions & 3 rubygems