Class: EnvironmentGenerator

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

Instance Method Summary collapse

Instance Method Details

#generate(options) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/environment_generator.rb', line 6

def generate(options)
  input_env_file_path = options[:input_environment_file_path]
  output_env_file_path = options[:output_environment_file_path]
  environment = Configuration::Environment.new
  p = Proc.new { }
  eval(File.read(input_env_file_path), p.binding)
  environment.generate_output_file(output_env_file_path)
  environment
end