class Rake::Task

Class Override for Rake::Task

Public Instance Methods

__invoke_with_call_chain__(task_args, invocation_chain)

Save the original invoke_with_call_chain instance method

invoke_with_call_chain(task_args, invocation_chain) click to toggle source

Override the invoke_with_call_chain instance method Provides a thread-safe variable to access information about the currently invoked chain

# File lib/rake/opt/current_invocation_chain/patches/rake/task.rb, line 8
def invoke_with_call_chain(task_args, invocation_chain)
  old_chain = Thread.current.promise.invocation_chain
  new_chain = ::Rake::InvocationChain.append(self, invocation_chain)
  Thread.current.promise.invocation_chain = new_chain
  __invoke_with_call_chain__(task_args, invocation_chain)  # And call the original invocation
  Thread.current.promise.invocation_chain = old_chain
end
Also aliased as: __invoke_with_call_chain__