Last active
December 24, 2015 17:09
-
-
Save thorncp/6833096 to your computer and use it in GitHub Desktop.
Rake dependency on task in global namespace
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
task :test do | |
puts "run tests" | |
end | |
namespace :build do | |
task :dev do | |
puts "build dev" | |
end | |
task :test do | |
puts "build test" | |
end | |
end | |
namespace :ci do | |
# "test" here would invoke "ci:test". "rake:test" forces the global task | |
task :dev => ["build:dev", "rake:test"] | |
task :test => ["build:test"] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment