Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 956 Bytes

README.md

File metadata and controls

35 lines (25 loc) · 956 Bytes

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"
)