Sha256: ef27e91a6d10611e815576fbcde73d4369f7e6491ac13b27e3d112f06c8062ff
Contents?: true
Size: 562 Bytes
Versions: 43
Compression:
Stored size: 562 Bytes
Contents
require 'fog/core/collection' require 'fog/cloudsigma/models/server' module Fog module Compute class CloudSigma class Servers < Fog::Collection model Fog::Compute::CloudSigma::Server def all resp = service.list_servers data = resp.body['objects'] load(data) end def get(server_id) resp = service.get_server(server_id) data = resp.body new(data) rescue Fog::CloudSigma::Errors::NotFound return nil end end end end end
Version data entries
43 entries across 41 versions & 6 rubygems
Version | Path |
---|---|
ns-fog-1.22.3 | lib/fog/cloudsigma/models/servers.rb |
ns-fog-1.22.2 | lib/fog/cloudsigma/models/servers.rb |
fog-1.22.1 | lib/fog/cloudsigma/models/servers.rb |