Skip to content

Instantly share code, notes, and snippets.

@wtnabe
Created August 20, 2015 11:04
Show Gist options
  • Save wtnabe/9bcb6da1bf57fbb3ea50 to your computer and use it in GitHub Desktop.
Save wtnabe/9bcb6da1bf57fbb3ea50 to your computer and use it in GitHub Desktop.
task :'db-imports' do
puts 'db:seed'
Rake::Task[:'db:seed'].invoke
Rake::Task.tasks.select {|t|
t.name.start_with? 'db:import_'
}.map {|t|
puts t.name
t.invoke
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment