Sha256: a4bde06369355f7640dced6239dedf924adc2a15b5001e6a193abeee2258142e
Contents?: true
Size: 626 Bytes
Versions: 46
Compression:
Stored size: 626 Bytes
Contents
require 'fog/core/collection' require 'fog/xenserver/models/compute/server_appliance' module Fog module Compute class XenServer class ServerAppliances < Fog::Collection model Fog::Compute::XenServer::ServerAppliance def all(options={}) data = service.get_records 'VM_appliance' load(data) end def get( server_appliance_ref ) if server_appliance_ref && server_appliance = service.get_record( server_appliance_ref, 'VM_appliance' ) new(server_appliance) else nil end end end end end end
Version data entries
46 entries across 46 versions & 6 rubygems