Rake_monkey GemPlugin

This gem monkey patches the Rake::TaskManager mixin. It allows the deletion and redefinition of existing Rake tasks.

Install

Include the gem as an svn:external under vendor/gems/.

or

Install as a gem and require in your application.

Description

Rake tasks cannot be overridden, they are concatenated.

desc “first task” task :override_me do

puts "first task"

end

desc “override override_me” task :override_me do

puts "override first task"

end

john@emopop:~/svn/topics/ > rake override_me (in /Users/john/svn/topics) first task override first task

Usage

To redefine an existing task:

desc “Override an existing task” redefine_task :existing_task do … end

To delete an existing task:

delete_task :existing_task

Contact

Name: John Dewey Email: john (at) dewey.cx