class Rake::Task

def define_task(*args, &block)

the existing task. Returns the defined task.
given name already exists, the prerequisites and actions are added to
Define a task given +args+ and an option block. If a rule with the
def define_task(*args, &block)
  Rake.application.define_task(self, *args, &block)
end