Class: Eye::Notify::Bugsnag
- Inherits:
-
Eye::Notify
- Object
- Eye::Notify
- Eye::Notify::Bugsnag
- Defined in:
- lib/eye/notify/bugsnag/version.rb,
lib/eye/notify/bugsnag.rb
Defined Under Namespace
Classes: NotificationException
Constant Summary collapse
- VERSION =
'0.0.1'
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/eye/notify/bugsnag.rb', line 19 def execute ::Bugsnag.configure do |cfg| cfg.api_key = api_key cfg.release_stage = release_stage cfg.notify_release_stages = notify_release_stages cfg.auto_notify = false #config.use_ssl = true cfg.project_root = project_root unless project_root.blank? #config.app_version = "2.5.1" #config.params_filters << "password" << "password_confirmation" #config.ignore_classes << "ActiveRecord::StatementInvalid" #config.ignore_classes << lambda {|ex| ex.message =~ /timeout/} #config.ignore_user_agents << %r{Chrome} #config.timeout = 10 cfg.app_type = "eye" end notify_ex = NotificationException.new() notify_ex. = @message_h ::Bugsnag.notify(notify_ex) end |