You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

capistrano-github

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

capistrano-github

0.1.1
bundlerRubygems
Version published
Maintainers
2
Created
Source

Capistrano::Github

In January 2014 Github Team announced Deployments API and you can use it with Capistrano 3.

Installation

Add this line to your application's Gemfile:

gem 'capistrano-github', github: '3scale/capistrano-github'

And then execute:

$ bundle

Require github tasks and set github_access_token:

# Capfile
require 'capistrano/github'
# deploy.rb
set :github_access_token, '89c3be3d1f917b6ccf5e2c141dbc403f57bc140c'


before 'deploy:starting', 'github:deployment:create'
after  'deploy:starting', 'github:deployment:pending'
after  'deploy:finished', 'github:deployment:success'
after  'deploy:failed',   'github:deployment:failure'

You can get your personal GH token here

Usage

New deployment record will be created automatically on each cap deploy run.

To see the list of deployments, execute

cap production github:deployments

Contributing

  • Fork it ( http://github.com/3scale/capistrano-github/fork )
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create new Pull Request

FAQs

Package last updated on 18 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts