0.0
No commit activity in last 3 years
No release in over 3 years
Take a list of JSON file names, and if they exist, load the contents into your process environment.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.6
>= 0
 Project Readme

JsonToEnv

JsonToEnv loads JSON into your process environment. If you call JsonToEnv multiple times, earlier invocations take priority because anything already in ENV will not be overwritten by JsonToEnv.

Usage

Given a JSON structure like this one:

{
  "one": "two",
  "three": {
    "four": 5
  }
}

Before you need to access environment variables:

JsonToEnv.load(json)

Now you can access your configuration through ENV:

ENV['THREE_FOUR'] == 5