Sha256: 65a1f0d9ea91c96c1b1ac5d2a1a65e48fd2caba7b37d4971f995d2a50d9aaa46

Contents?: true

Size: 898 Bytes

Versions: 9

Compression:

Stored size: 898 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 :indexes, :searchd
    attr_accessor :indexer
    
    def initialize
      @indexer = Riddle::Configuration::Indexer.new
      @searchd = Riddle::Configuration::Searchd.new
      @indexes = []
    end
    
    def render
      (
        [@indexer.render, @searchd.render] +
        @indexes.collect { |index| index.render }
      ).join("\n")
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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