module Envault
Constants
- DEFAULT_CIPHER
- DEFAULT_DIGEST
- DEFAULT_ENV_PREFIX
- DEFAULT_SOURCE_FILE
- SKIP_INITIALIZE_COMMANDS
- VERSION
envault version
Public Class Methods
load(*source_files)
click to toggle source
# 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:)
click to toggle source
# 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