lib/nymphia/cli.rb in nymphia-0.1.1 vs lib/nymphia/cli.rb in nymphia-0.1.2

- old
+ new

@@ -21,10 +21,12 @@ dsl = Nymphia::DSL.new(dsl_code, absolute_dsl_file_path) dsl.compile if @output_file_path - dsl.render(File.open(@output_file_path, 'w')) + File.open(@output_file_path, 'w') do |file| + dsl.render(file) + end else dsl.render(STDOUT) end end