class God::Behaviors::CleanUnixSocket
Public Instance Methods
before_start()
click to toggle source
# File lib/god/behaviors/clean_unix_socket.rb, line 11 def before_start File.delete(self.watch.unix_socket) "deleted unix socket" rescue "no unix socket to delete" end
valid?()
click to toggle source
# File lib/god/behaviors/clean_unix_socket.rb, line 5 def valid? valid = true valid &= complain("Attribute 'unix_socket' must be specified", self) if self.watch.unix_socket.nil? valid end