https://github.com/railsware/capistrano-uptodate
Capistrano extension that automatically check local repository with remote repository
https://github.com/railsware/capistrano-uptodate
Last synced: 4 months ago
JSON representation
Capistrano extension that automatically check local repository with remote repository
- Host: GitHub
- URL: https://github.com/railsware/capistrano-uptodate
- Owner: railsware
- Created: 2011-11-02T10:43:25.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2012-04-27T20:28:22.000Z (over 13 years ago)
- Last Synced: 2025-08-31T13:36:11.588Z (5 months ago)
- Language: Ruby
- Homepage:
- Size: 93.8 KB
- Stars: 14
- Watchers: 20
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# capistrano-uptodate
capistrano-uptodate is [capistrano](https://github.com/capistrano/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)