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

Version Path
fog-libvirt-0.5.0 lib/fog/libvirt/requests/compute/clone_volume.rb
fog-libvirt-0.4.2 lib/fog/libvirt/requests/compute/clone_volume.rb
fog-libvirt-0.4.1 lib/fog/libvirt/requests/compute/clone_volume.rb
fog-libvirt-0.4.0 lib/fog/libvirt/requests/compute/clone_volume.rb
fog-libvirt-0.3.0 lib/fog/libvirt/requests/compute/clone_volume.rb
fog-libvirt-0.2.0 lib/fog/libvirt/requests/compute/clone_volume.rb
fog-libvirt-0.1.0 lib/fog/libvirt/requests/compute/clone_volume.rb
fog-libvirt-0.0.4 lib/fog/libvirt/requests/compute/clone_volume.rb
fog-libvirt-0.0.3 lib/fog/libvirt/requests/compute/clone_volume.rb
fog-libvirt-0.0.2 lib/fog/libvirt/requests/compute/clone_volume.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/libvirt/requests/compute/clone_volume.rb
fog-libvirt-0.0.1 lib/fog/libvirt/requests/compute/clone_volume.rb
fog-1.29.0 lib/fog/libvirt/requests/compute/clone_volume.rb
fog-1.28.0 lib/fog/libvirt/requests/compute/clone_volume.rb
fog-1.27.0 lib/fog/libvirt/requests/compute/clone_volume.rb
fog-1.26.0 lib/fog/libvirt/requests/compute/clone_volume.rb
fog-1.25.0 lib/fog/libvirt/requests/compute/clone_volume.rb
nsidc-fog-1.24.1 lib/fog/libvirt/requests/compute/clone_volume.rb
fog-1.24.0 lib/fog/libvirt/requests/compute/clone_volume.rb
ns-fog-1.22.11 lib/fog/libvirt/requests/compute/clone_volume.rb