Sha256: 4f83a73241922da8f444adf8d67727a6fa471f9b45f73313224e5ea970da9058
Contents?: true
Size: 371 Bytes
Versions: 4
Compression:
Stored size: 371 Bytes
Contents
module God module Behaviors class CleanPidFile < Behavior def valid? valid = true valid &= complain("You must specify the 'pid_file' attribute on the Watch for :clean_pid_file") if self.watch.pid_file.nil? valid end def before_start File.delete(self.watch.pid_file) rescue nil end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
god-0.3.0 | lib/god/behaviors/clean_pid_file.rb |
god-0.4.0 | lib/god/behaviors/clean_pid_file.rb |
god-0.4.1 | lib/god/behaviors/clean_pid_file.rb |
god-0.4.3 | lib/god/behaviors/clean_pid_file.rb |