Capistrano::EJSON
This gem makes it easy to use ejson in applications that are deployed through Capistrano.
Installation
Add this lines to your application's Gemfile:
gem 'capistrano-ejson', '~> 0.0.1'
And then execute:
$ bundle
Or install it yourself as:
$ gem install capistrano-ejson
Usage
Require in Capfile
to use the default task:
require 'capistrano/ejson'
The task ejson:upload_config_files
will run after deploy:updated
.
By default any file ending in .ejson
will be decrypted and uploaded. You can set which files to upload manually by doing
set :ejson_files, %w{config/keys.ejson}
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