Sha256: 31688696ff813aad6d39e62867a73d9b24b3a414b4a10cb79e1d7a0990cacfab
Contents?: true
Size: 411 Bytes
Versions: 69
Compression:
Stored size: 411 Bytes
Contents
module God module Behaviors class CleanPidFile < Behavior def valid? valid = true valid &= complain("Attribute 'pid_file' must be specified", self) if self.watch.pid_file.nil? valid end def before_start File.delete(self.watch.pid_file) "deleted pid file" rescue "no pid file to delete" end end end end
Version data entries
69 entries across 69 versions & 21 rubygems