Sha256: 882b327d9ae39bf350cd116a52a7df1ff48b3361d5378e635aa2a449ec8f8720

Contents?: true

Size: 421 Bytes

Versions: 2

Compression:

Stored size: 421 Bytes

Contents

module OVIRT
  class Client
    def storagedomain(sd_id)
      sd = http_get("/storagedomains/%s" % sd_id)
      OVIRT::StorageDomain::new(self, sd.root)
    end

    def storagedomains(opts={})
      search= opts[:search] ||''
      http_get("/storagedomains?search=%s" % CGI.escape(search)).xpath('/storage_domains/storage_domain').collect do |sd|
        OVIRT::StorageDomain::new(self, sd)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rbovirt-0.0.9 lib/client/storage_domain_api.rb
rbovirt-0.0.8 lib/client/storage_domain_api.rb