Created
November 22, 2019 15:32
-
-
Save tacitphoenix/4a3f9a91063cd770ebcbee0a2b18bcde to your computer and use it in GitHub Desktop.
Rake tasks in rails to chain dependencies
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 :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