Sha256: 2853014c60f84ac29ed12202a53568639f58a283d7c63a1d9ef814ae4df5a449
Contents?: true
Size: 438 Bytes
Versions: 62
Compression:
Stored size: 438 Bytes
Contents
module God module Behaviors class CleanUnixSocket < Behavior def valid? valid = true valid &= complain("Attribute 'unix_socket' must be specified", self) if self.watch.unix_socket.nil? valid end def before_start File.delete(self.watch.unix_socket) "deleted unix socket" rescue "no unix socket to delete" end end end end
Version data entries
62 entries across 62 versions & 21 rubygems