Created
June 15, 2011 17:46
-
-
Save wkj/1027640 to your computer and use it in GitHub Desktop.
Tddium pre_hook and db_hook examples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :tddium do | |
desc "tddium environment pre-run setup task" | |
task :pre_hook do | |
%w(tddium recurly pricing).each do |cfg| | |
system "cd config && ln -nfs #{cfg}.example.yml #{cfg}.yml" | |
end | |
end | |
desc "tddium environment db setup task" | |
task :db_hook do | |
Rake::Task["db:setup"].invoke | |
Rake::Task["db:migrate"].invoke | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment