Sha256: 24524888f3007d61dd2a59f8ba8bd0aff4b35541502984a17ca6a4402d556853

Contents?: true

Size: 830 Bytes

Versions: 14

Compression:

Stored size: 830 Bytes

Contents

module Riddle
  class Configuration
    class Searchd < Riddle::Configuration::Section
      self.settings = [:listen, :address, :port, :log, :query_log,
        :read_timeout, :client_timeout, :max_children, :pid_file, :max_matches,
        :seamless_rotate, :preopen_indexes, :unlink_old, :attr_flush_period,
        :ondisk_dict_default, :max_packet_size, :mva_updates_pool,
        :crash_log_path, :max_filters, :max_filter_values, :listen_backlog,
        :read_buffer, :read_unhinted]
      
      attr_accessor *self.settings
            
      def render
        raise ConfigurationError unless valid?
        
        (
          ["searchd", "{"] +
          settings_body +
          ["}", ""]
        ).join("\n")
      end
      
      def valid?
        !( @port.nil? || @pid_file.nil? )
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
skalee-thinking-sphinx-1.3.14.2 vendor/riddle/lib/riddle/configuration/searchd.rb
skalee-thinking-sphinx-1.3.14.1 vendor/riddle/lib/riddle/configuration/searchd.rb
riddle-1.0.12 lib/riddle/configuration/searchd.rb
riddle-1.0.11 lib/riddle/configuration/searchd.rb
riddle-1.0.10 lib/riddle/configuration/searchd.rb
riddle-1.0.9 lib/riddle/configuration/searchd.rb
riddle-1.0.8 lib/riddle/configuration/searchd.rb
riddle-1.0.7 lib/riddle/configuration/searchd.rb
riddle-1.0.6 lib/riddle/configuration/searchd.rb
riddle-1.0.5 lib/riddle/configuration/searchd.rb
riddle-1.0.4 lib/riddle/configuration/searchd.rb
riddle-1.0.3 lib/riddle/configuration/searchd.rb
riddle-1.0.2 lib/riddle/configuration/searchd.rb
riddle-1.0.1 lib/riddle/configuration/searchd.rb