lib/garcon/stash/journal.rb
# Write data to output stream and advance @pos
#
Write data to output stream and advance @pos
Write data to output stream and advance @pos
def write(dump)
        with_flock(File::LOCK_EX) do
          @fd.write(dump)
          @fd.flush
        end
        @pos = @fd.pos if @pos && @fd.pos == @pos + dump.bytesize
      end
def write ( dump ) with_flock ( File :: LOCK_EX ) do @fd . write ( dump ) @fd . flush end @pos = @fd . pos if @pos && @fd . pos == @pos + dump . bytesize end
Write data to output stream and advance @pos
Write data to output stream and advance @pos
dump
<not_specific>