Module: Honeybadger::Plugins::Thor Private
- Defined in:
- lib/honeybadger/plugins/thor.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
- .included(base) ⇒ Object private
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
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
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
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(e) raise end |