Class: Occson::Rails::EnvironmentStorer

Inherits:
Object
  • Object
show all
Defined in:
lib/occson/rails/environment_storer.rb

Instance Method Summary collapse

Constructor Details

#initialize(environment) ⇒ EnvironmentStorer

Returns a new instance of EnvironmentStorer.



4
5
6
# File 'lib/occson/rails/environment_storer.rb', line 4

def initialize(environment)
  @environment = environment
end

Instance Method Details

#callObject



8
9
10
11
12
# File 'lib/occson/rails/environment_storer.rb', line 8

def call
  @environment.each do |key, value|
    ENV.store(key, value)
  end
end