I want to build scripts that automatize things for me.
Here is an example of what I want to do:
- Create new rails app (rails new application_name --database=mysql)
- Jump to folder
- Initialize git (git init; git add .; git commit -m "first commit"; git remote add name address; git push name master)
- Create heroku project (heroku create; git push heroku master)
- Etc...
I've got a lot of such scripts (not just rails related) I want to build.
Should these kind of steps be coded with Rake or Gem?
From what I have understood rake is usually getting the tasks from the current folder's Rakefile. If i want to make operations universal, is it better to create a gem?
The thing is that I want to be able to call it from whatever directory I'm in.
What are the pros and cons with each?