Skip to content

Instantly share code, notes, and snippets.

@swarut
Created October 31, 2012 07:48
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save swarut/3985686 to your computer and use it in GitHub Desktop.
Save swarut/3985686 to your computer and use it in GitHub Desktop.
Rails : Creating A Rake Task Which Run All Sub-Tasks
namespace :tasks do
namespace :create do
desc "Create all survey templates"
task :all => [:task1, :task2, :task3]
desc "desc1"
task :task1 => :environment do
end
desc "desc2"
task :task2 => :environment do
end
desc "desc3"
task :task3 => :environment do
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment