# # DamageControl specific tasks # # - Load Test DB without dumping from the development database (use the pre-dumped files) # module Rake class Task def remove_prerequisite(task_name) name = task_name.to_s @prerequisites.delete(name) end end end desc "DamageControl build task" task :dc_build do # For the DC build, adjust the pre-requisites to stop the development db dump Rake::Task.lookup(:clone_structure_to_test).remove_prerequisite(:db_structure_dump) Rake::Task.lookup(:clone_schema_to_test).remove_prerequisite(:db_schema_dump) Rake::Task[:default].invoke end