Sha256: 72e2da0bb9c8c2edeea0b85a6d1a66bae787d511bfb45c04a749ef507b4fc5b3

Contents?: true

Size: 475 Bytes

Versions: 8

Compression:

Stored size: 475 Bytes

Contents

module Riddle
  class Configuration
    class Indexer < Riddle::Configuration::Section
      self.settings = [:mem_limit, :max_iops, :max_iosize, :max_xmlpipe2_field,
        :write_buffer, :max_file_field_buffer]
      
      attr_accessor *self.settings
            
      def render
        raise ConfigurationError unless valid?
        
        (
          ["indexer", "{"] +
          settings_body +
          ["}", ""]
        ).join("\n")
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
riddle-1.3.3 lib/riddle/configuration/indexer.rb
riddle-1.3.2 lib/riddle/configuration/indexer.rb
riddle-1.3.1 lib/riddle/configuration/indexer.rb
riddle-1.3.0 lib/riddle/configuration/indexer.rb
riddle-1.2.2 lib/riddle/configuration/indexer.rb
riddle-1.2.1 lib/riddle/configuration/indexer.rb
riddle-1.2.0 lib/riddle/configuration/indexer.rb
riddle-1.1.0 lib/riddle/configuration/indexer.rb