Sha256: 781baf9e1d00fcadcdd67f1496a2e46603940acbde2428da47463687c3753fb0
Contents?: true
Size: 476 Bytes
Versions: 25
Compression:
Stored size: 476 Bytes
Contents
require "fog/glesys/models/compute/ssh_key" module Fog module Compute class Glesys class SshKeys < Fog::Collection model Fog::Compute::Glesys::SshKey def all data = service.ssh_key_list.body["response"]["sshkeys"] load(data) end def get(id) hash = service.ssh_key_list.body["response"]["sshkeys"].find{|a| a["id"] == id} hash.nil? ? nil : new(hash) end end end end end
Version data entries
25 entries across 23 versions & 4 rubygems