Class: CloudFormation::Bridge::ExceptionNotifier

Inherits:
Object
  • Object
show all
Defined in:
lib/cloud_formation/bridge/exception_notifier.rb

Class Method Summary collapse

Class Method Details

.notifierObject



38
39
40
41
42
43
44
# File 'lib/cloud_formation/bridge/exception_notifier.rb', line 38

def notifier
  @notifier ||= if ENV['ROLLBAR_TOKEN']
    RollbarExceptionNotifier.instance
  else
    StdoutExceptionNotifier.instance
  end
end

.notifier=(notifier) ⇒ Object



46
47
48
# File 'lib/cloud_formation/bridge/exception_notifier.rb', line 46

def notifier=(notifier)
  @notifier = notifier
end

.report_exception(exception, custom_data = {}, user_data = {}) ⇒ Object



50
51
52
# File 'lib/cloud_formation/bridge/exception_notifier.rb', line 50

def report_exception(exception, custom_data = {}, user_data = {})
  Rollbar.report_exception(exception, custom_data, user_data)
end