How to set up a gem to have a binary command, for example. "project newProject" which uses Thor generator commands to create files, etc.
A good answer will describe how to lay out the gem skeleton, which when launched from the command line, that is, "project newProject", creates a single file called "newProject.txt" in the directory in which it was launched.
I saw Rails 3 use Thor to power its generators; seems like a really good solution, and I would like to use a similar approach in a ruby stone other than the Rails I'm working on. I tried to look at the source of Rails 3, but it is a little labyrinth, hence the question.
source share