2 Star 1 Fork 1

Gitee 组 / exception_notification

forked from Jim / exception_notification 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
campfire.md 1.40 KB
一键复制 编辑 原始数据 按行查看 历史

Campfire notifier

This notifier sends notifications to your Campfire room.

Usage

Just add the tinder gem to your Gemfile:

gem 'tinder'

To configure it, you need to set the subdomain, token and room_name options, like this:

Rails.application.config.middleware.use ExceptionNotification::Rack,
                                        email: {
                                          email_prefix: '[PREFIX] ',
                                          sender_address: %{"notifier" <notifier@example.com>},
                                          exception_recipients: %w{exceptions@example.com}
                                        },
                                        campfire: {
                                          subdomain: 'my_subdomain',
                                          token: 'my_token',
                                          room_name: 'my_room'
                                        }

Options

subdomain

String, required

Your subdomain at Campfire.

room_name

String, required

The Campfire room where the notifications must be published to.

token

String, required

The API token to allow access to your Campfire account.

For more options to set Campfire, like ssl, check here.

Ruby
1
https://gitee.com/mayun-team/exception_notification.git
git@gitee.com:mayun-team/exception_notification.git
mayun-team
exception_notification
exception_notification
master

搜索帮助