Class: Secrets
- Inherits:
-
Object
- Object
- Secrets
- Defined in:
- lib/secrets.rb
Instance Method Summary collapse
-
#initialize(filename) ⇒ Secrets
constructor
A new instance of Secrets.
- #load_into_environment ⇒ Object
Constructor Details
#initialize(filename) ⇒ Secrets
Returns a new instance of Secrets.
4 5 6 |
# File 'lib/secrets.rb', line 4 def initialize(filename) @filename = filename end |
Instance Method Details
#load_into_environment ⇒ Object
8 9 10 11 12 |
# File 'lib/secrets.rb', line 8 def load_into_environment secrets['environment'].each do |key, value| ENV[key] = value end end |