IRC question: Ruby gems
18:24 < cknapp> rwmjones: is the RPM the best way to grab the guestfs gem? [Please stay in the channel after asking a question!] We currently ship the Ruby bindings as an extension in the ruby/ subdirectory of the source tarball. (Note that because the extension is mostly generated during the build, you will have to download the tarball from http://libguestfs.org/download/ which contains the generated bits; or, much less conveniently, you will have to do a full build from git). So there is no gem as such. In particular there is nothing on rubygems.org. However it should be possible to take the ruby/ subdirectory and turn it into a gem with minimal effort, since it is already in mostly the right format. In particular, see the Gem::Specification section in ruby/Rakefile. I don't know how the gem relates to the Fedora RPM. Possibly not at all. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-builder quickly builds VMs from scratch http://libguestfs.org/virt-builder.1.html
On Sun, Jul 20, 2014 at 07:02:21PM +0100, Richard W.M. Jones wrote:
18:24 < cknapp> rwmjones: is the RPM the best way to grab the guestfs gem?
Maybe another way to read this question is: Is the RPM [or Debian package] the best way to use guestfs with Ruby? In which case the answer is yes. See also: http://libguestfs.org/guestfs-ruby.3.html Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org
participants (1)
-
Richard W.M. Jones