diff --git a/lib/seed-fu/writer.rb b/lib/seed-fu/writer.rb index 04e28fd..25f22e9 100644 --- a/lib/seed-fu/writer.rb +++ b/lib/seed-fu/writer.rb @@ -93,6 +93,7 @@ def write_to_io(io) yield(self) @io.write(seed_footer) @io.write(file_footer) + @io.close ensure @io, @count = nil, nil end