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 ⇒ Object
Constructor Details
#initialize(filename = "") ⇒ Secrets
Returns a new instance of Secrets.
8 9 10 |
# File 'lib/secrets.rb', line 8 def initialize(filename = "") @filename = filename.empty? ? default_filename : filename end |
Instance Method Details
#load ⇒ Object
12 13 14 15 16 |
# File 'lib/secrets.rb', line 12 def load secrets['environment']&.each do |key, value| ENV[key] = value end end |