lib/secret_env.rb in secret_env-0.6.1 vs lib/secret_env.rb in secret_env-0.7.0

- old
+ new

@@ -19,9 +19,13 @@ ENV[record.key] = record.value end end end + def self.env?(env: 'development', secrets_file: 'config/secret_env.yml') + YAML.load_file(secrets_file).key?(env) + end + class Record attr_reader :key def initialize(key:, raw_value:, storage: Storage::Plain.new, dependency: {}) @key = key