Last active
May 9, 2018 09:29
-
-
Save rakesh87/e04e4c8a5e97eac2efe2dfac13853520 to your computer and use it in GitHub Desktop.
Invoke a rake task from another rake task
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 :app_task do | |
desc 'run web task' | |
task :run_web do | |
# my web task logic here | |
end | |
desc 'run backend task' | |
task :run_backend do | |
# my backend task logic here | |
# after this invoke other rake task | |
Rake::Task['app_task:run_web'].invoke | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment