Sha256: b57d22b52b91b4a2374b49dc81658bb984c18710ffe163bcc11699bad1d53705
Contents?: true
Size: 367 Bytes
Versions: 5
Compression:
Stored size: 367 Bytes
Contents
# frozen_string_literal: true module Delayed module Master class FileReopener class << self def reopen ObjectSpace.each_object(File) do |file| next if file.closed? || !file.sync file.reopen file.path, 'a+' file.sync = true file.flush end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems