Sha256: d742e0597ce0e11aab7a493c1ee96baaa6ef2f53d691984730dd3b6fa7ac867f

Contents?: true

Size: 423 Bytes

Versions: 3

Compression:

Stored size: 423 Bytes

Contents

# frozen_string_literal: true

class ThinkingSphinx::Commands::StartDetached < ThinkingSphinx::Commands::Base
  def call
    FileUtils.mkdir_p configuration.indices_location

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

    if command :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-4.2.0 lib/thinking_sphinx/commands/start_detached.rb
thinking-sphinx-4.1.0 lib/thinking_sphinx/commands/start_detached.rb
thinking-sphinx-4.0.0 lib/thinking_sphinx/commands/start_detached.rb