Sha256: df86e1207fcdf864d4d46d74f60e620011a5b35683d60406d677df0475de121b

Contents?: true

Size: 337 Bytes

Versions: 17

Compression:

Stored size: 337 Bytes

Contents

module OVIRT
  class Client
    def disks(opts={})
      path = "/disks" + search_url(opts)
      http_get(path).xpath('/disks/disk').collect do |d|
        OVIRT::Volume.new(self, d)
      end
    end

    def disk(disk_id)
      disk_xml = http_get("/disks/%s" % disk_id)
      OVIRT::Volume.new(self, disk_xml.root)
    end
  end
end

Version data entries

17 entries across 15 versions & 2 rubygems

Version Path
rbovirt-0.1.7 lib/client/disk_api.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/rbovirt-0.1.6/lib/client/disk_api.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/rbovirt-0.1.6/lib/client/disk_api.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/rbovirt-0.1.6/lib/client/disk_api.rb
rbovirt-0.1.6 lib/client/disk_api.rb
rbovirt-0.1.5 lib/client/disk_api.rb
rbovirt-0.1.4 lib/client/disk_api.rb
rbovirt-0.1.3 lib/client/disk_api.rb
rbovirt-0.1.2 lib/client/disk_api.rb
rbovirt-0.0.38 lib/client/disk_api.rb
rbovirt-0.1.1 lib/client/disk_api.rb
rbovirt-0.0.37 lib/client/disk_api.rb
rbovirt-0.0.36 lib/client/disk_api.rb
rbovirt-0.1.0 lib/client/disk_api.rb
rbovirt-0.0.35 lib/client/disk_api.rb
rbovirt-0.0.34 lib/client/disk_api.rb
rbovirt-0.0.33 lib/client/disk_api.rb