Created
February 28, 2011 12:52
-
-
Save damphyr/847273 to your computer and use it in GitHub Desktop.
A simple test for dynamic dependencies in Rake
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
meisterbrau:rake-issues riva$ rake a | |
(in /Users/riva/Projects/mine/sandbox/rake-issues) | |
b | |
a |
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
meisterbrau:rake-issues riva$ rake a | |
(in /Users/riva/Projects/mine/sandbox/rake-issues) | |
b | |
c | |
a |
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
require "rake" | |
desc "Depends on a task that adds dependencies" | |
task :a => :b do | |
puts "a" | |
end | |
desc "The added dependency" | |
task :c do | |
puts "c" | |
end | |
desc "Adds a dependency to a" | |
task :b do | |
task :a => :c | |
puts "b" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment