Class: OneSecret::EnvStore

Inherits:
Store
  • Object
show all
Defined in:
lib/one_secret/store.rb

Instance Method Summary collapse

Constructor Details

#initializeEnvStore

Returns a new instance of EnvStore.



20
21
22
23
# File 'lib/one_secret/store.rb', line 20

def initialize
  @decrypt_into_env = OneSecret.configuration.decrypt_into_env?
  super(ENV)
end

Instance Method Details

#put(key, value) ⇒ Object



25
26
27
# File 'lib/one_secret/store.rb', line 25

def put(key, value)
  super(key, value) if @decrypt_into_env
end