Module: Rake::TaskManager

Module | Rake::TaskManager
In: | lib/echoe/extensions.rb lib/echoe/extensions.rb

### Methods

redefine_task redefine_task

### Public Instance methods

redefine_task(task_class, *args, &block)

[Source]

        # File lib/echoe/extensions.rb, line 37
    37:     def redefine_task(task_class, *args, &block)
    38:       task_name, deps = resolve_args(args)
    39:       task_name = task_class.scope_name(@scope, task_name)
    40:       deps = [deps] unless deps.respond_to?(:to_ary)
    41:       deps = deps.collect {|d| d.to_s }
    42:       task = @tasks[task_name.to_s] = task_class.new(task_name, self)
    43:       task.application = self
    44:       task.send(:add_comment, @last_comment)
    45:       @last_comment = nil
    46:       task.enhance(deps, &block)
    47:       task
    48:     end

redefine_task(task_class, *args, &block)

[Source]

        # File lib/echoe/extensions.rb, line 37
    37:     def redefine_task(task_class, *args, &block)
    38:       task_name, deps = resolve_args(args)
    39:       task_name = task_class.scope_name(@scope, task_name)
    40:       deps = [deps] unless deps.respond_to?(:to_ary)
    41:       deps = deps.collect {|d| d.to_s }
    42:       task = @tasks[task_name.to_s] = task_class.new(task_name, self)
    43:       task.application = self
    44:       task.send(:add_comment, @last_comment)
    45:       @last_comment = nil
    46:       task.enhance(deps, &block)
    47:       task
    48:     end

[Validate]