Skip to content

Instantly share code, notes, and snippets.

@wkj
Created June 15, 2011 17:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wkj/1027640 to your computer and use it in GitHub Desktop.
Save wkj/1027640 to your computer and use it in GitHub Desktop.
Tddium pre_hook and db_hook examples
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