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

Version Path
god-0.9.0 lib/god/behaviors/clean_unix_socket.rb
olgen-god-0.9.2 lib/god/behaviors/clean_unix_socket.rb
olgen-god-0.9.1 lib/god/behaviors/clean_unix_socket.rb
olgen-god-0.9.0 lib/god/behaviors/clean_unix_socket.rb
god-0.8.0 lib/god/behaviors/clean_unix_socket.rb
olgen-god-0.8.2 lib/god/behaviors/clean_unix_socket.rb
olgen-god-0.8.1 lib/god/behaviors/clean_unix_socket.rb
olgen-god-0.8.0 lib/god/behaviors/clean_unix_socket.rb
god-0.7.22 lib/god/behaviors/clean_unix_socket.rb
god-0.7.21 lib/god/behaviors/clean_unix_socket.rb
god-0.7.20 lib/god/behaviors/clean_unix_socket.rb
god-0.7.19 lib/god/behaviors/clean_unix_socket.rb
god-0.7.18 lib/god/behaviors/clean_unix_socket.rb
god-0.7.17 lib/god/behaviors/clean_unix_socket.rb
god-0.7.16 lib/god/behaviors/clean_unix_socket.rb
god-0.7.15 lib/god/behaviors/clean_unix_socket.rb
god-0.7.14 lib/god/behaviors/clean_unix_socket.rb
god-0.7.10 lib/god/behaviors/clean_unix_socket.rb
god-0.7.11 lib/god/behaviors/clean_unix_socket.rb
god-0.7.12 lib/god/behaviors/clean_unix_socket.rb