class ThinkingSphinx::Commands::StartDetached

Public Instance Methods

call() click to toggle source
# File lib/thinking_sphinx/commands/start_detached.rb, line 2
def call
  FileUtils.mkdir_p configuration.indices_location

  result = controller.start :verbose => options[:verbose]

  if controller.running?
    log "Started searchd successfully (pid: #{controller.pid})."
  else
    handle_failure result
  end
end

Private Instance Methods

type() click to toggle source
# File lib/thinking_sphinx/commands/start_detached.rb, line 16
def type
  'start'
end