Module: Honeybadger::Plugins::Thor
- Defined in:
- lib/honeybadger/plugins/thor.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/honeybadger/plugins/thor.rb', line 7 def self.included(base) base.class_eval do no_commands do alias_method :invoke_command_without_honeybadger, :invoke_command alias_method :invoke_command, :invoke_command_with_honeybadger end end end |
Instance Method Details
#invoke_command_with_honeybadger(*args) ⇒ Object
16 17 18 19 20 21 |
# File 'lib/honeybadger/plugins/thor.rb', line 16 def invoke_command_with_honeybadger(*args) invoke_command_without_honeybadger(*args) rescue Exception => e Honeybadger.notify_or_ignore(e) raise end |