Class: Bizflow::ConfigGenerator

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

Constant Summary collapse

RbTemplatesPath =
"#{File.dirname(__FILE__)}/templates/rb"

Instance Method Summary collapse

Instance Method Details

#generateObject



8
9
10
11
12
13
# File 'lib/bizflow/config_generator.rb', line 8

def generate
  process_source = ERB.new(File.read("#{RbTemplatesPath}/config.tt"), nil, '-').result()
  out_file = File.new("#{Dir.pwd}/bizflow_config.rb", "w")
  out_file.puts(process_source)
  out_file.close
end