Files
libguestfs/ruby
Csaba Henk 83474887ed ruby: change value of 'readonly' drive toption to Boolean in doc/example/test
Seeing `g.add_drive_opt :readonly => 1` allows one to imply
that ensuring writable access to drive should happen via
`g.add_drive_opt :readonly => 0`. However, the passed option
value gets passed down to C according to Ruby Boolean semantics,
that is, any value apart from `false` and `nil` will be true
(see RTEST in Ruby C API).

So its more idiomatic and provides a better hint if we use
`g.add_drive_opt :readonly => true` in Ruby samples.
2020-02-19 18:27:02 +00:00
..
2019-01-08 11:58:30 +00:00
2017-01-26 15:05:46 +00:00

= Ruby bindings for libguestfs

The module Guestfs provides Ruby bindings for
{the libguestfs API}[http://libguestfs.org/guestfs.3.html].