Sha256: e178048a3b72ff97202e9ba513ec057839fdda3f3030930c236332dfe170bc75

Contents?: true

Size: 448 Bytes

Versions: 14

Compression:

Stored size: 448 Bytes

Contents

# frozen_string_literal: true

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

    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

14 entries across 14 versions & 1 rubygems

Version Path
thinking-sphinx-5.6.0 lib/thinking_sphinx/commands/start_detached.rb
thinking-sphinx-5.5.1 lib/thinking_sphinx/commands/start_detached.rb
thinking-sphinx-5.5.0 lib/thinking_sphinx/commands/start_detached.rb
thinking-sphinx-5.4.0 lib/thinking_sphinx/commands/start_detached.rb
thinking-sphinx-5.3.0 lib/thinking_sphinx/commands/start_detached.rb
thinking-sphinx-5.2.1 lib/thinking_sphinx/commands/start_detached.rb
thinking-sphinx-5.2.0 lib/thinking_sphinx/commands/start_detached.rb
thinking-sphinx-5.1.0 lib/thinking_sphinx/commands/start_detached.rb
thinking-sphinx-5.0.0 lib/thinking_sphinx/commands/start_detached.rb
thinking-sphinx-4.4.1 lib/thinking_sphinx/commands/start_detached.rb
thinking-sphinx-4.4.0 lib/thinking_sphinx/commands/start_detached.rb
thinking-sphinx-4.3.2 lib/thinking_sphinx/commands/start_detached.rb
thinking-sphinx-4.3.1 lib/thinking_sphinx/commands/start_detached.rb
thinking-sphinx-4.3.0 lib/thinking_sphinx/commands/start_detached.rb