Created
February 10, 2012 22:47
-
-
Save hsbt/1793682 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 :mybefore do | |
puts :foo | |
end | |
task :myafter do | |
puts :bar | |
end | |
task :buzz do | |
puts :buzz | |
end | |
Rake::Task[:buzz].enhance([:mybefore]) do | |
Rake::Task[:myafter].invoke | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment