module Envyable

Overview

Public: A simple yaml to ENV loader.

Defined in:

envyable.cr
envyable/loader.cr
envyable/version.cr

Constant Summary

VERSION = "1.0.1"

Class Method Summary

Class Method Detail

def self.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.


[View source]