Hi David,
On 20 Nov 2007, at 5:10 AM, David Lutterkort wrote:
I'm pleased to announce the availability of Ruby bindings for libvirt.
The main site for them is http://libvirt.org/ruby
API docs can be found at http://libvirt.org/ruby/api/index.html
An initial release is at http://libvirt.org/ruby/download - the
bindings
are mostly complete, though there are a number of less frequently used
functions that are not covered yet.
Please send all your patches (and comments/questions) to this list.
Two suggestions on making the binding more ruby-ish:
1. Let opening a connection yield a conn object where possible so
that we can write something like this:
Libvirt::open("qemu:///system") do |conn|
dom = conn.lookupDomainByName("mydomain")
end
At the end of the block, conn.close will be automatically called
as a cleanup action.
2. Change method calls on ruby objects to use underscores instead of
camelcase. For instance, conn.lookupDomainByName should be
conn.lookup_domain_by_name instead.
cheers,
mengkuan
--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list