Sha256: b368b1102fe9a7379c87cba423e1b9b9fa0235a3d9c6a1c9e3355564fd1a6f9b
Contents?: true
Size: 710 Bytes
Versions: 1
Compression:
Stored size: 710 Bytes
Contents
module Riddle class Configuration class Searchd NUMBER = 1.class def valid? set_listen !( @listen.nil? || @listen.empty? || @pid_file.nil? ) end private def set_listen @listen = @listen.to_s if @listen.is_a?(NUMBER) return unless @listen.nil? || @listen.empty? @listen = [] @listen << @port.to_s if @port @listen << "9306:mysql41" if @mysql41.is_a?(TrueClass) @listen << "#{@mysql41}:mysql41" if @mysql41.is_a?(NUMBER) @listen.each { |l| l.insert(0, "#{@address}:") } if @address end def settings @listen.nil? ? super : super - [:address, :port] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
riddle-2.1.0 | lib/riddle/0.9.9/configuration/searchd.rb |