The GLI gem is used for generating command suite CLI apps (like Git, RVM
etc.)
It has a scaffold generator that will automatically create a gemspec,
gemfile, test and feature files, and will properly chmod the /bin file
ready for inclusion in your path.
It might be something that you are looking for.
On Thu, Nov 15, 2012 at 1:35 PM, tamouse mailing lists <
bundle gem GEM_NAME is useful. It gives you this:
bundle gem cli
create cli/Gemfile
create cli/Rakefile
create cli/LICENSE.txt
create cli/README.md
create cli/.gitignore
create cli/cli.gemspec
create cli/lib/cli.rb
create cli/lib/cli/version.rb
Initializating git repo in /home/vmoravec/code/test/bbb/cli
which a basic skeleton for any gem; you will have to add your
executable files manually into your gemspec file.
I have found a nice guide about creating a gem here: Make your own gem - RubyGems Guides ; however, I did not check
whether it’s up to date.