Created
October 31, 2012 07:48
-
-
Save swarut/3985686 to your computer and use it in GitHub Desktop.
Rails : Creating A Rake Task Which Run All Sub-Tasks
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 :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