cap-templates
Capistrano plugin that resolved .erb files on deploy
Installation
Add this line to your application's Gemfile:
gem 'cap-templates'
And then execute:
$ bundle
Or install it yourself as:
$ gem install cap-templates
Usage
In your deploy.rb you should:
- require
cap-templates - set the
erb_templatesvariable.
A typical deploy file might look like this:
require 'cap-templates'
set :erb_templates, ['nginx/configuration.erb' ,'unicorn.rb.erb']Files inside erb_templates are relative to your root_path/config/ directory.
These files will be resolved to the filename with the .erb extention omitted.
The template files are not deleted in the process
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