knife-libvirt icon indicating copy to clipboard operation
knife-libvirt copied to clipboard

Gem Structure

Open yfeldblum opened this issue 14 years ago • 2 comments

How to give this project a standard gem structure.

  • Run bundle gem in the root of the project to get a .gemspec, a Gemfile, and a lib directory with a version.rb.
  • Move Ruby code files to lib/knife/libvirt/(flavor|host|server|storage).rb.
  • Add a lib/knife/libvirt.rb which requires each of the above.
  • Add a lib/knife-libvirt.rb which requires knife/libvirt (optional).

yfeldblum avatar Aug 16 '11 15:08 yfeldblum

hey, thanks! I must admit this plugin took a bit of a back seat when I came up against some design decisions about how to best bring new hosts online (introduce a dependency on cobbler, use preseeds or custom ISOs etc).. I was hoping to take another look at and use the fog provider at the same time, which @jedi4ever is working on: https://github.com/jedi4ever/fog/tree/libvirt - it definitely makes a lot of sense for this to use fog.

That being said, I like the idea of rolling this as a gem, so I'll have a go at the requested changes :)

agoddard avatar Aug 16 '11 22:08 agoddard

Have started this in the gem branch

agoddard avatar Aug 16 '11 22:08 agoddard