Module: SlackNotifierWrapper::Helpers
- Defined in:
- lib/slack_notifier_wrapper/helpers.rb
Instance Method Summary collapse
Instance Method Details
#execute_or_speak(method_name) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/slack_notifier_wrapper/helpers.rb', line 4 def execute_or_speak(method_name) begin send(method_name) rescue Exception => e = "#{self.class}##{method_name} failed to execute" SlackNotifierWrapper.({ color: "danger", attachment_message: }) raise e end end |