class PumaBacklogDetector::FlagFile
Public Class Methods
new(path)
click to toggle source
# File lib/puma_backlog_detector.rb, line 56 def initialize path @path = path @exists = File.exists? path set false end
Public Instance Methods
set(value)
click to toggle source
# File lib/puma_backlog_detector.rb, line 62 def set value if @exists != value FileUtils.send((value ? :touch : :rm_f), @path) @exists = value end end