Sha256: c97c6a9af295425b69a28cfe0e401a62790768302308796b7e10d7bd14eabceb
Contents?: true
Size: 531 Bytes
Versions: 25
Compression:
Stored size: 531 Bytes
Contents
require 'fog/core/collection' require 'fog/xenserver/models/compute/vdi' module Fog module Compute class XenServer class Vdis < Fog::Collection model Fog::Compute::XenServer::VDI def all(options = {}) data = service.get_records 'VDI' load(data) end def get( vdi_ref ) if vdi_ref && vdi = service.get_record( vdi_ref, 'VDI' ) new(vdi) end rescue Fog::XenServer::NotFound nil end end end end end
Version data entries
25 entries across 25 versions & 4 rubygems