Sha256: 3720f1265469d41579b8c7289a450e607985a7adb7befa0f4f51b315c4e29c1c
Contents?: true
Size: 747 Bytes
Versions: 13
Compression:
Stored size: 747 Bytes
Contents
module OVIRT class Client def host(host_id, opts={}) xml_response = http_get("/hosts/%s" % host_id) OVIRT::Host::new(self, xml_response.root) end def hosts(opts={}) path = "/hosts" path += search_url(opts) unless filtered_api http_get(path).xpath('/hosts/host').collect do |h| OVIRT::Host::new(self, h) end end def approve_host(host_id, opts={}) http_post("/hosts/%s/approve" % host_id, "<action></action>") end def reinstall_host(host_id, opts={}) http_post("/hosts/%s/install" % host_id, "<action><ssh> <authentication_method>PublicKey</authentication_method> </ssh></action>") end end end
Version data entries
13 entries across 13 versions & 1 rubygems