module

Envyable

Public: A simple yaml to ENV loader.

Constants

VERSION = "1.0.1"

Class methods

load(path : String, environment = "development")

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.

Source

Nested types