No commit activity in last 3 years
No release in over 3 years
Load configuration variables from YAML file for Capsitrano 3
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 10.0

Runtime

 Project Readme

Capistrano::LoadVariables

Load configuration variables from YAML file.

Installation

Add this line to your application's Gemfile:

gem 'capistrano-load_variables'

And then execute:

$ bundle

Or install it yourself as:

$ gem install capistrano-load_variables

Usage

Add this line to your Capfile after require "capistrano/setup".

require 'capistrano/load_variables'

Put cap_variables.yml in config directory.

staging:
  url: http://staging.example.com/
  port: 3000
production:
  url: http://www.example.com/
  port: 80

In staging and production stage, url and port will be set.