No commit activity in last 3 years
No release in over 3 years
Capistrano plugin that integrates with Figaro, loading your configuration for use during deployment.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 1.1
 Project Readme

capistrano-figaro

Capistrano plugin that integrates with Figaro, loading your configuration for use during deployment.

Gem Version Build Status Code Climate Coverage Status Dependency Status

Installation

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'

Usage

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

Configuring

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'

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

License

The capistrano-figaro plugin is free software released under the MIT License. See LICENSE for details.