Skip to content

Instantly share code, notes, and snippets.

@tacitphoenix
Created November 22, 2019 15:32
Show Gist options
  • Save tacitphoenix/4a3f9a91063cd770ebcbee0a2b18bcde to your computer and use it in GitHub Desktop.
Save tacitphoenix/4a3f9a91063cd770ebcbee0a2b18bcde to your computer and use it in GitHub Desktop.
Rake tasks in rails to chain dependencies
namespace :sandbox do
desc "run main"
task :main => [:environment, :one] do
puts "Running main"
end
desc "run one"
task :one => :two do
puts "Running one"
end
desc "run two"
task :two => :three do
puts "Running two"
end
desc "run three"
task :three do
puts "Running three"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment