Skip to content

Ruby utility to load encrypted variables into the environment

License

Notifications You must be signed in to change notification settings

pepicrft/encrypted-environment

Repository files navigation

Encrypted enironment

CircleCI codecov Gem Version

Ruby utility to load encrypted variables into the environment

Install

  1. Add the following line to the Gemfile:
gem "encrypted-environment", git: "git@github.com:pepibumur/encrypted-environment.git"
  1. Run bundle install

Usage

require "encrypted/environment"

Encrypted::Environment.load_from_ejson(
  "path/to/env.ejson",
  secrets_path: "secrets",
  private_key: "key"
)

Encrypted::Environment.encrypt_ejson(
  "path/to/env.ejson",
  secrets_path: "secrets",
  private_key: "key"
)

About

Ruby utility to load encrypted variables into the environment

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published