虚拟机!

阅读更多
ruby-libvirt
============

Ruby bindings for libvirt (http://libvirt.org)

Usage
-----

In your ruby code, do a "require 'libvirt'"; to obtain a connection, use
'Libvirt::open' or 'Libvirt::openReadOnly'. See tests/*.rb for more
examples.

Hacking
-------

On a Fedora machine, run
  yum install libvirt-devel ruby-devel rubygem-rake
and then
  rake build
  rake test

To run against the checkout, make sure you set RUBYLIB (assuming DIR is the
toplevel of your source checkout):

  export RUBYLIB=$dir/lib:$dir/ext/libvirt
  ruby -rlibvirt -e 'puts Libvirt::version("xen")[0]'

你可能感兴趣的:(虚拟机,Ruby,EXT)