Skip to content

Instantly share code, notes, and snippets.

@stevenkaras
stevenkaras / gist:4506406
Created January 10, 2013 22:33
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