static public Method

Task.task_defined?(task_name)

TRUE if the task name is already defined.

Source Code

# File rake.rb, line 643
def task_defined?(task_name)
  Rake.application.lookup(task_name) != nil
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.