class UniformNotifier::SentryNotifier

Public Class Methods

active?() click to toggle source
# File lib/uniform_notifier/sentry.rb, line 3
def self.active?
  !!UniformNotifier.sentry
end

Protected Class Methods

_out_of_channel_notify(data) click to toggle source
# File lib/uniform_notifier/sentry.rb, line 9
def self._out_of_channel_notify(data)
  message = data.values.compact.join("\n")

  opt = {}
  if UniformNotifier.sentry.is_a?(Hash)
    opt = UniformNotifier.sentry
  end

  exception = Exception.new(message)
  Raven.capture_exception(exception, opt)
end