An open API service indexing awesome lists of open source software.

https://github.com/arsensokolov/capistrano-stride

Capistrano plugin to notify deployments on Stride
https://github.com/arsensokolov/capistrano-stride

capistrano stride

Last synced: 5 months ago
JSON representation

Capistrano plugin to notify deployments on Stride

Awesome Lists containing this project

README

          

# Capistrano::Stride

[![Gem Version](https://badge.fury.io/rb/capistrano-stride.svg)](https://badge.fury.io/rb/capistrano-stride)
[![Maintainability](https://api.codeclimate.com/v1/badges/2aa1419d1454294270fb/maintainability)](https://codeclimate.com/github/ArsenBespalov/capistrano-stride/maintainability)
[![Build Status](https://travis-ci.org/ArsenBespalov/capistrano-stride.svg?branch=master)](https://travis-ci.org/ArsenBespalov/capistrano-stride)

Notifies in a Stride room about a new deployment showing the git log for the latest
commits included in the current deploy.

![](https://raw.githubusercontent.com/ArsenBespalov/capistrano-stride/master/screenshot.png)

## Installation

Add this line to your application's Gemfile:

```ruby
group :deployment do
gem 'capistrano-stride', '~> 0.3', require: false
end
```

The group declaration is optional, but it's important to make sure you only load this gem
withing a Capistrano script (as explained below) and never within your application
(eg. rails does the require of the default bundler group and the current environment group).

And then execute:

```
$ bundle
```

Or install it yourself as:

```
$ gem install capistrano-stride
```

## Usage

Add this to your `Capfile`

```ruby
require 'capistrano/stride'
```

Then you need to configure you Stride token and the room URL you want to notify about
the new deployment

```ruby
set :stride_url, "https://api.atlassian.com/site/SITE_ID/conversation/CONVERSATION_ID/message"
set :stride_token, "STRIDE_ACCESS_TOKEN"
```

For get Stride URL and access token you need add custom app with API tokens,
without installation application. Just only enter specify a token name. Simple and Easy!

## Contributing

1. Fork it
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 new Pull Request