Skip to content

AaronLasseigne/unifig-env

Repository files navigation

Adds a provider to support loading environment variables to Unifig.

Version Test

Installation

Add it to your Gemfile:

gem 'unifig-env', '~> 0.3.1'

Or install it manually:

$ gem install unifig-env --version '~> 0.3.1'

This project uses Semantic Versioning. Check out GitHub releases for a detailed list of changes.

Usage

Environment

Use env as your provider or add it to your list of providers:

unifig:
  providers: env

HOST:

This will pull "HOST" from ENV and add it to Unifig.

Environment File

Use env-file as your provider or add it to your list of providers:

unifig:
  providers: env-file

By default, it looks for .env in the local directory. The file can be specified by passing file to the configuration.

unifig:
  providers:
    list: env-file
    config:
      env-file:
        file: my.env

Contributing

If you want to contribute to Unifig:Env, please read our contribution guidelines. A complete list of contributors is available on GitHub.

License

Unifig is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors