Module: Envault
- Defined in:
- lib/envault.rb,
lib/envault/cli.rb,
lib/envault/core.rb,
lib/envault/version.rb,
lib/envault/constants.rb,
lib/envault/formatter.rb,
lib/envault/cryptor/kms.rb,
lib/envault/environment.rb,
lib/envault/cryptor/simple.rb
Defined Under Namespace
Modules: Cryptor Classes: CLI, Core, Environment, Formatter
Constant Summary collapse
- VERSION =
envault version
"0.2.1"
- DEFAULT_SOURCE_FILE =
".env"
- DEFAULT_ENV_PREFIX =
"ENVAULT_"
- DEFAULT_CIPHER =
"aes-256-cbc"
- DEFAULT_DIGEST =
"SHA256"
- SKIP_INITIALIZE_COMMANDS =
["reencrypt_file"]
Class Method Summary collapse
Class Method Details
.load(*source_files) ⇒ Object
11 12 13 14 15 |
# File 'lib/envault.rb', line 11 def self.load(*source_files) source_files = ['.env'] if source_files.empty? params = ['load', '--sources', source_files] Envault::CLI.start(params) end |
.load_with_profile(*source_files, config:, profile:) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/envault.rb', line 17 def self.load_with_profile(*source_files, config:, profile:) source_files = ['.env'] if source_files.empty? params = ['load', '--sources', source_files] params.concat(['-c', config]) if config params.concat(['--profile', profile]) if profile Envault::CLI.start(params) end |