class Voltron::Defender::Trace
Public Instance Methods
help()
click to toggle source
# File lib/voltron/defender/commands/trace.rb, line 7 def help "# Retrieve the stack trace for the most recent exception id, or the specific exception if an id is provided\n.trace|.backtrace|.stack|.stacktrace [id]\n" end
respond_with(adapter)
click to toggle source
# File lib/voltron/defender/commands/trace.rb, line 15 def respond_with(adapter) if error adapter.upload("Stack Trace ##{error.id}", "Here's the stack trace for #{error.name.downcase}", error.trace) else adapter.message('Sorry, I wasn\'t able to find any exception to provide information on. Try specifying an exception id, like `.<command> <id>`') end end
responds_to()
click to toggle source
# File lib/voltron/defender/commands/trace.rb, line 11 def responds_to ['trace', 'backtrace', 'stack', 'stacktrace'] end