Skip to content

speee/ruboty-capistrano

Repository files navigation

Ruboty::Capistrano

RubotyでCapistranoを使って、deployするためのgemです.

Installation

Add this line to your application's Gemfile:

gem 'ruboty-capistrano'

And then execute:

$ bundle

Or install it yourself as:

$ gem install ruboty-capistrano

Usage

usage

Deploy

@bot_name deploy role branch_name

Rollback

@bot_name rollback role

Env

RUBOTY_ENV              - deploy先の環境を指定する
LOCAL_REPOSITORY_PATH  - deploy対象が存在しているディレクトリパス
(ex: "sample:/path/to/sample;admin:/path/to/admin")
DEPLOY_LOG_PATH         - deploy時のログを残すpath
GITHUB_ACCESS_TOKEN     - GitHubのアクセストークン(GitHubのAPIを用いるため)
REMOTE_REPOSITORY_PATH  - deploy対象のGitHubのrepository
(ex: "sample:hoge/sample-repo;admin:hoge/admin-repo")

License

The gem is available as open source under the terms of the MIT License.