Skip to content

Instantly share code, notes, and snippets.

@stevenkaras
Created January 10, 2013 22:33
Show Gist options
  • Save stevenkaras/4506406 to your computer and use it in GitHub Desktop.
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
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