Sha256: f0ed23fadd2a6cdeccf9bb2a66851d14e36fc8c34ce72fb0a4c747771da2760a
Contents?: true
Size: 975 Bytes
Versions: 5
Compression:
Stored size: 975 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, override_iptables=False, opts={}) http_post("/hosts/%s/install" % host_id, "<action> <ssh> <authentication_method>PublicKey</authentication_method> </ssh> <host> <override_iptables>" + override_iptables + "</override_iptables> </host> </action>" ) end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
rbovirt-0.1.5 | lib/client/host_api.rb |
rbovirt-0.1.4 | lib/client/host_api.rb |
rbovirt-0.1.3 | lib/client/host_api.rb |
rbovirt-0.1.2 | lib/client/host_api.rb |
rbovirt-0.1.1 | lib/client/host_api.rb |