| Path: | README |
| Last Update: | Wed Aug 29 12:30:48 +0200 2007 |
Xen strives to be the Ruby interface talking to the Xen API. It grew from our own need to talk to Xen Servers with Ruby.
# Connect to xenhost
xenhost = Xen::Host.new('xenhost.example.com')
# Get status of each VM running
xenhost.vms.each do |vm|
puts vm.state unless vm.is_dom0?
end
# Restart a certain VM
xenhost.find_vm('example_vm').clean_reboot!