Class: Thor::Task

Inherits:
Object show all
Defined in:
lib/jenkins/cli.rb

Instance Method Summary collapse

Instance Method Details

#sans_backtrace(backtrace, caller) ⇒ Object

:nodoc:



12
13
14
15
# File 'lib/jenkins/cli.rb', line 12

def sans_backtrace(backtrace, caller) #:nodoc:
  saned  = backtrace.reject { |frame| frame =~ FILE_REGEXP || (frame =~ /\.java:/ && RUBY_PLATFORM =~ /java/) }
  saned -= caller
end