Created
January 10, 2013 22:33
-
-
Save stevenkaras/4506406 to your computer and use it in GitHub Desktop.
Snippet for rakefiles. When this task is provided on the command line, it will disable prerequisites for rake. You should ensure this snippet is at the end of your rakefile
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 :skip_prereqs | |
if Rake.application.top_level_tasks.include?(:skip_prereqs) | |
Rake::Task.tasks.each do |task| | |
Rake::Task[task].clear_prerequisites | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment