class Thor::Task
def sans_backtrace(backtrace, caller) #:nodoc:
Clean everything that comes from the Thor gempath and remove the caller.
def sans_backtrace(backtrace, caller) #:nodoc: dirname = /^#{Regexp.escape(File.dirname(__FILE__))}/ saned = backtrace.reject { |frame| frame =~ dirname } saned -= caller end