What is ruby-libvirt?

ruby-libvirt provides Ruby bindings for libvirt. With them you can use libvirt directly from your Ruby programs:

require 'libvirt'

conn = Libvirt::open("qemu:///system")
puts conn.capabilities


dom = conn.lookup_domain_by_name("mydomain")
puts dom.xml_desc

To get a better idea of what's possible to achieve using ruby-libvirt, check out the examples that are part of the git repository and the full API reference.