I am using Ruby on Rails 3.2.2. I have implemented a Something
plugin (it is almost a gem, but is not a gem) and all related files are in the lib/something
directory. Since I would like to automate code generation related to that plugin, I came up with Ruby on Rails Generators. So, for the Something
plugin, I am looking for implementing my own generators in the lib/something
directory.
How should I make that and what are prescriptions? That is, for example, what rails generate
command line should be invoked to properly generate all needed files in the lib/something
directory? generators would still work with plugins (not gem)? what are advices about this matter?