creates zip file in tmp folder

This commit is contained in:
rgarcia
2016-04-18 11:48:19 +02:00
committed by Bertocq
parent 04c33d1327
commit a05a20b2b6

View File

@@ -15,7 +15,7 @@ class NewsletterZip
end end
def create def create
Zip::File.open("#{filename}.zip", Zip::File::CREATE) do |zipfile| Zip::File.open(path, Zip::File::CREATE) do |zipfile|
zipfile.get_output_stream("#{filename}.txt") do |file| zipfile.get_output_stream("#{filename}.txt") do |file|
file.write emails file.write emails
end end