Skip to content

code-lever/mina-rollbar

Repository files navigation

Mina::Rollbar Build Status Code Climate

Mina tasks for interacting with Rollbar.

Adds the following tasks:

rollbar:notify

Installation

Add this line to your application's Gemfile:

gem 'mina-rollbar', require: false

And then execute:

$ bundle

Usage

require 'mina/rollbar'

...
# replace value w/your real access token
set :rollbar_access_token, 'this-is-not-a-real-token'

task deploy: :environment do
  deploy do
    ...

    to :launch do
      ...
      invoke :'rollbar:notify'
    end
  end
end

Options

Name Description
rollbar_access_token Rollbar access token (post_server_item token)
rollbar_username Rollbar username of deploying user (optional)
rollbar_local_username Local username of deploying user (optional)
rollbar_comment Comment for this deployment (optional)
rollbar_env Deployment environment string, defaults to rails_env

Contributing

  1. Fork it ( https://github.com/code-lever/mina-rollbar/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request