Displaying 1 result from an estimated 1 matches for "flush_writ".
Did you mean:
  flush_wait
  
2009 Oct 03
2
Looking for a good resource on open-uri and FileUtils
...ation of the data of the file assigned to the
given
      # style, in the format most representative of the current storage.
      def to_file style = default_style
        @queued_for_write[style] || (File.new(path(style)) if
exists?(style))
      end
      alias_method :to_io, :to_file
      def flush_writes #:nodoc:
        @queued_for_write.each do |style, file|
          FileUtils.mkdir_p(File.dirname(path(style)))
          result = file.stream_to(path(style))
          file.close
          result.close
        end
        @queued_for_write = {}
      end
      def flush_deletes #:nodoc:...