No commit activity in last 3 years
No release in over 3 years
Capistrano extension that automatically check local repository with remote repository
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 2.5.5
 Project Readme

capistrano-uptodate

capistrano-uptodate is capistrano extension that automatically check your local repository with remote repository and if repository is not up-to-date:

  • display corresponding message.
  • ask to confirm recipe execution or abort recipe execution.

If you want to be sure that every developer in your team use recent version of deployment recipes before it starts deploy this extension might be handy.

Installation

gem install capistrano-uptodate

Add to Capfile or config/deploy.rb:

require 'capistrano/uptodate'

Configuration

You can tune uptodate recipe using next options:

  • :uptodate_scm (:git) - SCM you use
  • :uptodate_scm_bynary ('git') - path to SCM binary
  • :uptodate_remote_repository ('origin') - remote repository
  • :uptodate_branch ('master') - branch of repository to check
  • :uptodate_time (60) - time in seconds for checking remote repository
  • :uptodate_behaviour - (:confirm)
    • :confirm - show outdated message and ask to confirm the further execution
    • :abort - show outdated message and abort further execution

Example

$ cap production deploy
  triggering load callbacks
* == Currently executing `uptodate'
* == Currently executing `uptodate:git'
Local 'master' branch is not synchronized with 'origin' repository.
Continue anyway? (y/N)