module Thor::Invocation

def invoke_task(task, *args) #:nodoc:

:nodoc:
Invoke the given task if the given args.
def invoke_task(task, *args) #:nodoc:
  current = @_invocations[self.class]
  unless current.include?(task.name)
    current << task.name
    task.run(self, *args)
  end
end