Class: OneSecret::EnvStore
Instance Method Summary collapse
-
#initialize ⇒ EnvStore
constructor
A new instance of EnvStore.
- #put(key, value) ⇒ Object
Constructor Details
#initialize ⇒ EnvStore
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 |