-
Notifications
You must be signed in to change notification settings - Fork 0
Home
infinityrobot edited this page Feb 7, 2011
·
5 revisions
As Ares is a Thor script, we can use the power of Thor to install the command into the system Thor commands.
As Ares is a Thor task, make sure the Thor gem is installed:
gem install thor
We can then install Ares by:
thor install <path_to_file>
The installer should do its thing:
thor install ~/ares.thor
Your Thorfile contains:
class Ares < Thor
...
end
Do you wish to continue [y/N]? y
Please specify a name for ~/ares.thor in the system repository [ares.thor]: ares.thor
Storing thor file in your system repository
To check if Ares has been installed we can use the thor list command in any directory and see if it is listed. To check Ares installed correctly, run:
$ cd ~
$ thor list
ares
-----
thor ares:new [NAME] # Creates a new Rails app
All done! Ares is now install and can be used by running
thor ares
Enjoy easily generating Rails apps!