Class: Secrets

Inherits:
Object
  • Object
show all
Defined in:
lib/secrets.rb

Instance Method Summary collapse

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_environmentObject



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