Add this line to your application's Gemfile:
gem 'exception_notification-pushbullet'
And then execute:
$ bundle
Or install it yourself as:
$ gem install exception_notification-pushbullet
# config/environments/production.rb
Rails.application.configure do
config.middleware.use ExceptionNotification::Rack,
pushbullet: {
users: [{
api_token: 'xxx',
device_idens: %w(yyy)
}]
}
end
Array, required
Users to send notifications.
users
includes the following options.
String, required
Access token for Pushbullet API.
Check Pushbullet API for details.
Array, default: All devices
ID of devices to send notifications. Default is send to all devices registered in user.
String, default: "New exception occured in appname(environment)."
Notification title.
Bug reports and pull requests are welcome on GitHub at https://github.com/y-yagi/exception_notification-pushbullet. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.