lib/secret_env.rb in secret_env-0.5.0 vs lib/secret_env.rb in secret_env-0.6.0

- old
+ new

@@ -1,13 +1,11 @@ require 'secret_env/version' require 'secret_env/storage' require 'yaml' module SecretEnv - SECRETS_FILE = 'config/secret_env.yml' - - def self.load(env: 'development') - config = YAML.load_file(SECRETS_FILE).fetch(env) + def self.load(env: 'development', secrets_file: 'config/secret_env.yml') + config = YAML.load_file(secrets_file).fetch(env) storage = Storage.setup(config['storage']) env_map = {} Array(config.fetch('env')).each do |key, raw_value|