search for: ruby_guestfs_add_drive_opt

Displaying 1 result from an estimated 1 matches for "ruby_guestfs_add_drive_opt".

2011 Jan 05
0
Fwd: Review of libguestfs ruby bindings
...an look at ruby-libvirt for a lot of examples of this, but a simple one is: /* * call-seq: g.launch -> nil * * Call guestfs_launch to launch the appliance */ 4) Probably too late to fix this, but the way that "optional" arguments are done is not idiomatic to ruby. For instance, ruby_guestfs_add_drive_opts() takes a (possibly empty) hash that contains the arguments you care about. If they are all nil, then no arguments are passed. More idiomatic would be to have ruby_guestfs_add_drive_opts() take a variable number of parameters and then only require the user to pass in the ones that they are inter...