Skip to content

runar/capistrano-figaro

Repository files navigation

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.

About

Capistrano 3 integration with Figaro

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages