Sha256: 217ebb133a710e6932ede3a1696c03557bd9a208fd43823e7846a7b3418a2f4b
Contents?: true
Size: 886 Bytes
Versions: 3
Compression:
Stored size: 886 Bytes
Contents
require 'riddle/configuration/section' require 'riddle/configuration/distributed_index' require 'riddle/configuration/index' require 'riddle/configuration/indexer' require 'riddle/configuration/realtime_index' require 'riddle/configuration/remote_index' require 'riddle/configuration/searchd' require 'riddle/configuration/source' require 'riddle/configuration/sql_source' require 'riddle/configuration/xml_source' module Riddle class Configuration class ConfigurationError < StandardError #:nodoc: end attr_reader :indices, :searchd attr_accessor :indexer def initialize @indexer = Riddle::Configuration::Indexer.new @searchd = Riddle::Configuration::Searchd.new @indices = [] end def render ( [@indexer.render, @searchd.render] + @indices.collect { |index| index.render } ).join("\n") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
riddle-1.5.2 | lib/riddle/configuration.rb |
riddle-1.5.1 | lib/riddle/configuration.rb |
riddle-1.5.0 | lib/riddle/configuration.rb |