Skip to content

Instantly share code, notes, and snippets.

@rakesh87
Last active May 9, 2018 09:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rakesh87/e04e4c8a5e97eac2efe2dfac13853520 to your computer and use it in GitHub Desktop.
Save rakesh87/e04e4c8a5e97eac2efe2dfac13853520 to your computer and use it in GitHub Desktop.
Invoke a rake task from another rake task
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