Method: SimpleResolver#execute

Defined in:
lib/tasks/simple_resolver.rb

#executeObject



14
15
16
17
18
19
20
21
22
23
24
# File 'lib/tasks/simple_resolver.rb', line 14

def execute
  template_file = File.open(@template, 'r')
  content = template_file.read
  result = ERB.new(content, nil, '>').result(binding)

  output_file = File.open(@output, 'w')
  output_file.write(result)
  
  template_file.close
  output_file.close
end