Sha256: bfaff19c682a3755ba0379d7a04a3973f4ea0d0571d99a128c4ac99e3d2e6574

Contents?: true

Size: 395 Bytes

Versions: 3

Compression:

Stored size: 395 Bytes

Contents

class ThinkingSphinx::Commands::StartDetached < ThinkingSphinx::Commands::Base
  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

  def type
    'start'
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
thinking-sphinx-3.4.2 lib/thinking_sphinx/commands/start_detached.rb
thinking-sphinx-3.4.1 lib/thinking_sphinx/commands/start_detached.rb
thinking-sphinx-3.4.0 lib/thinking_sphinx/commands/start_detached.rb