CapistranoDeployGenerator
Generate deployment configuration to be used with Capistrano.
Following options are supported:
- capify - simply run
capify .
command in project - deploy - Create config/deploy.rb file and config/deploy directory subtree with required componenets for capistrano.
- modules - Install supporting Git repositories as submodules.
Example: rails generate capistrano_deploy deploy
Installation
Add this line to your application's Gemfile:
gem 'capistrano_deploy_generator'
And then execute:
$ bundle
Or install it yourself as:
$ gem install capistrano_deploy_generator
Usage
Run to get help:
rails generate capistrano_deploy
Submodules
rails generate capistrano_deploy modules
This command will install github repositories used in the cap deploy. These repositories are installed in ./config/deploy/
subdirectory.
Following submodules are configured for installation:
- recipes:
[email protected]:dmytro/capistrano-recipes.git
Collection of recipes for Capistrano deployment. Each of the recipe needs to be added todeploy.rb
file. - chef-solo:
[email protected]:dmytro/chef-solo.git
Some of the recipes use Chef-solo configuration to install packages. Also Chef-solo can be used to bootstrap server before deploying. This repository implements chef-solo integration.
Deploy
rails generate capistrano_deploy deploy
Generator for the deploy.rb
file. Generator uses menu system to create the file. It will guide user throught the set of basic questions and build the file bsed on the user answers.
Contributing
- Fork it
- 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
Author
Dmytro Kovalov
May, 2013
License
MIT, see LICENSE.txt file