lib/ddr/managers/derivatives_manager.rb in ddr-models-1.14.1 vs lib/ddr/managers/derivatives_manager.rb in ddr-models-1.14.2
- old
+ new
@@ -49,10 +49,10 @@
end
def generate_derivative!(derivative)
Dir.mktmpdir do |tempdir|
generator_source = create_source_file(tempdir)
- generator_output = File.new(File.join(tempdir, "output"), 'wb')
+ generator_output = File.new(File.join(tempdir, "output.out"), 'wb')
results = derivative.generator.new(generator_source.path, generator_output.path, derivative.options).generate
generator_source.close unless generator_source.closed?
if results.status.success?
generator_output = File.open(generator_output, 'rb')
object.reload if object.persisted?