class Delayed::Master::Util::FileReopener
Public Class Methods
reopen()
click to toggle source
# File lib/delayed/master/util/file_reopener.rb, line 6 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