static public Method

Task.new(task_name, app)

Create a task named task_name with no actions or prerequisites. Use enhance to add actions and prerequisites.

Source Code

# File rake.rb, line 447
def initialize(task_name, app)
  @name = task_name.to_s
  @prerequisites = FileList[]
  @actions = []
  @already_invoked = false
  @full_comment = nil
  @comment = nil
  @lock = Mutex.new
  @application = app
  @scope = app.current_scope
  @arg_names = 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.