Sha256: 02e06a23e4b439960e99b386c983efe7d86df275357722fe6d5eccf9443f0f0e
Contents?: true
Size: 512 Bytes
Versions: 42
Compression:
Stored size: 512 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
42 entries across 42 versions & 3 rubygems