Capistrano plugin that integrates with Figaro, loading your configuration for use during deployment.
Add the gem to your Gemfile
and run bundle install
:
group :development do
gem 'capistrano-figaro'
end
Then add the gem to your Capfile
:
require 'capistrano/figaro'
There is nothing else you need to do. All your configuration values from
application.yml
will be automatically loaded as environment variables when
you invoke a Capistrano task.
Your configuration values will be available as either ENV['setting']
or
Figaro.env.setting
:
set :some_option, ENV['some_option']
set :other_option, Figaro.env.other_option
The default location of the configuration file used by Figaro is
config/application.yml
. You may change this location by setting the
:figaro_path
variable:
set :figaro_path, 'path/to/file.yml'
- 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 a new Pull Request
The capistrano-figaro plugin is free software released under the MIT License. See LICENSE for details.