Sha256: 8e16fe8a83ccd40ed34edc9b3c91a394791a0592bb5fd3b7012b30b17c49bc84
Contents?: true
Size: 706 Bytes
Versions: 3
Compression:
Stored size: 706 Bytes
Contents
require 'envault/version' require 'envault/constants' require 'envault/core' require 'envault/cli' require 'envault/environment' require 'envault/formatter' require 'envault/cryptor/kms' require 'envault/cryptor/simple' module Envault def self.load(*source_files) source_files = ['.env'] if source_files.empty? params = ['load', '--sources', source_files] Envault::CLI.start(params) end 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 end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
envault-0.2.2 | lib/envault.rb |
envault-0.2.1 | lib/envault.rb |
envault-0.2.0 | lib/envault.rb |