Skip to content

Instantly share code, notes, and snippets.

@gilesbowkett
Created April 16, 2011 00:56
Show Gist options
  • Save gilesbowkett/922730 to your computer and use it in GitHub Desktop.
Save gilesbowkett/922730 to your computer and use it in GitHub Desktop.
please correct me
namespace :myapp do
def invoke(tasks) # did I really need to write this method? aargh
tasks.each {|t| Rake::Task[t].invoke}
end
desc "dump everything (in order to re-seed)"
task :renew do
invoke(%w{db:drop db:create db:migrate})
end
end
@ggoodale
Copy link

task :renew => ['db:drop', 'db:create', 'db:migrate']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment