lib/garcon/stash/journal.rb
# Clear the database log and yield
#
Clear the database log and yield
Clear the database log and yield
def clear
        flush
        with_tmpfile do |path, file|
          file.write(@format.header)
          file.close
          with_flock(File::LOCK_EX) do
            File.rename(path, @file)
          end
        end
        open
      end
def clear flush with_tmpfile do | path , file | file . write ( @format . header ) file . close with_flock ( File :: LOCK_EX ) do File . rename ( path , @file ) end end open end
Clear the database log and yield
Clear the database log and yield