Sha256: 2f52679dc115139383448e8acd840ca37ed76c845f554a4bea6ad04db807dbf4
Contents?: true
Size: 643 Bytes
Versions: 3
Compression:
Stored size: 643 Bytes
Contents
require 'envault/version' require 'envault/constants' require 'envault/core' require 'envault/cli' require 'envault/environment' require 'envault/formatter' 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.1.2 | lib/envault.rb |
envault-0.1.1 | lib/envault.rb |
envault-0.1.0 | lib/envault.rb |