0.01
No release in over 3 years
Low commit activity in last 3 years
Git helpers for Capistrano v3 deployments
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.2
 Project Readme

Capistrano::Gity

Git deployment helpers for Capistrano v3.

#Installation

Add this in your Gemfile:

gem 'capistrano', '~> 3.1'
gem 'capistrano-gity', '~> 1.0.2'

Usage

Require in Capfile to use gity as a wrapper of capistrano:deploy task:

require 'capistrano/gity'

The task gity:prepare_deploy runs before deploy:starting and creates a remote temp branch under remote/deploy/.

Use the following to delete the temporary branch after successfull deployment, i.e. after deploy:finished:

set :auto_cleanup, true

You can also change the default temporary branch prefix, i.e. deploy/ with:

set :branch_prefix, 'deploy/production/'

Useful tasks

bundle exec cap production gity:help
bundle exec cap production gity:check
bundle exec cap production gity:uptip
bundle exec cap production gity:cleanup_temp_branches

Check the module for details :)

Contributing

  1. Fork the project
  2. Make your feature addition or bug fix
  3. Create new Pull Request