module Envyable
Public: A simple yaml to ENV loader.
Constants
- VERSION
Public Class Methods
load(path, environment = 'development')
click to toggle source
Public: load the yaml file from path and set the variables in the given environment to the ENV.
path - a Pathname or String that describes where the yaml file
resides.
environment - a String describing the environment from which to load the
variables (default: development).
Examples
Envyable.load('config/env.yml') Envyable.load('config/application.yml', 'production')
Returns nothing.
# File lib/envyable.rb, line 23 def self.load(path, environment = 'development') Loader.new(path).load(environment) end