Grid image generation: Fix a double output issue, let write_file handle dry runs, and make sure to open the file for binary output.

This commit is contained in:
Chris Eppstein 2009-12-31 11:09:47 -08:00
parent 13425f3e4b
commit e957da4ec8

View File

@ -93,12 +93,7 @@ module Compass
end
end
directory File.dirname(filename)
logger.record((overwrite ? :overwrite : :create), basename(filename))
unless options[:dry_run]
write_file(filename, self.to_blob)
else
true
end
write_file(filename, self.to_blob, options, true)
end
end
end