Sha256: 8ddebc2f25db71eb13badbef149689e7b97bd45b879ad9c1d16ed3846fbcfa71

Contents?: true

Size: 852 Bytes

Versions: 8

Compression:

Stored size: 852 Bytes

Contents

require 'riddle/configuration/section'

require 'riddle/configuration/distributed_index'
require 'riddle/configuration/index'
require 'riddle/configuration/indexer'
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

8 entries across 8 versions & 2 rubygems

Version Path
skalee-thinking-sphinx-1.3.14.2 vendor/riddle/lib/riddle/configuration.rb
skalee-thinking-sphinx-1.3.14.1 vendor/riddle/lib/riddle/configuration.rb
riddle-1.0.12 lib/riddle/configuration.rb
riddle-1.0.11 lib/riddle/configuration.rb
riddle-1.0.10 lib/riddle/configuration.rb
riddle-1.0.9 lib/riddle/configuration.rb
riddle-1.0.8 lib/riddle/configuration.rb
riddle-1.0.7 lib/riddle/configuration.rb