Sha256: c62363c277ee4b3cc3f645004e504994cf87d97a43c3dd46b8a4d9ba6b0120ac
Contents?: true
Size: 498 Bytes
Versions: 32
Compression:
Stored size: 498 Bytes
Contents
module Fog module Compute class Libvirt class Real def clone_volume (pool_name, xml, name) vol = client.lookup_storage_pool_by_name(pool_name).lookup_volume_by_name(name) client.lookup_storage_pool_by_name(pool_name).create_vol_xml_from(xml, vol) end end class Mock def clone_volume(pool_name, xml, name) Fog::Compute::Libvirt::Volume.new({:pool_name => pool_name, :xml => xml}) end end end end end
Version data entries
32 entries across 32 versions & 5 rubygems