Sha256: 804e3410c8516bd12a0c76a5578aa7db2e76f8d1f8b9fc5b0d22757a0a2ce7d2
Contents?: true
Size: 433 Bytes
Versions: 2
Compression:
Stored size: 433 Bytes
Contents
# frozen_string_literal: true module God module Behaviors class CleanUnixSocket < Behavior def valid? valid = true valid &= complain("Attribute 'unix_socket' must be specified", self) if watch.unix_socket.nil? valid end def before_start File.delete(watch.unix_socket) 'deleted unix socket' rescue 'no unix socket to delete' end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
resurrected_god-1.1.1 | lib/god/behaviors/clean_unix_socket.rb |
resurrected_god-1.1.0 | lib/god/behaviors/clean_unix_socket.rb |