Top Level Namespace

Defined Under Namespace

Modules: Dnif

Instance Method Summary collapse

Instance Method Details

#controllerObject



3
4
5
6
7
8
9
10
11
12
# File 'lib/dnif/tasks.rb', line 3

def controller
  require 'riddle'

  configuration = Riddle::Configuration.new
  configuration.searchd.pid_file   = "#{Dnif.root_path}/log/searchd.#{Dnif.environment}.pid"
  configuration.searchd.log        = "#{Dnif.root_path}/log/searchd.log"
  configuration.searchd.query_log  = "#{Dnif.root_path}/log/searchd.query.log"

  Riddle::Controller.new(configuration, "#{Dnif.root_path}/config/sphinx/#{Dnif.environment}.conf")
end