Sha256: b1f4bb2e04390a15cd45c85d4629dacc1aaa3388408c9a525d5d6f360390cd41

Contents?: true

Size: 547 Bytes

Versions: 17

Compression:

Stored size: 547 Bytes

Contents

# frozen_string_literal: true

class ThinkingSphinx::Deltas::IndexJob
  def initialize(index_name)
    @index_name = index_name
  end

  def perform
    ThinkingSphinx::Commander.call(
      :index_sql, configuration,
      :indices => [index_name],
      :verbose => !quiet_deltas?
    )
  end

  private

  attr_reader :index_name

  def configuration
    @configuration ||= ThinkingSphinx::Configuration.instance
  end

  def quiet_deltas?
    configuration.settings['quiet_deltas'].nil? ||
    configuration.settings['quiet_deltas']
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
thinking-sphinx-5.6.0 lib/thinking_sphinx/deltas/index_job.rb
thinking-sphinx-5.5.1 lib/thinking_sphinx/deltas/index_job.rb
thinking-sphinx-5.5.0 lib/thinking_sphinx/deltas/index_job.rb
thinking-sphinx-5.4.0 lib/thinking_sphinx/deltas/index_job.rb
thinking-sphinx-5.3.0 lib/thinking_sphinx/deltas/index_job.rb
thinking-sphinx-5.2.1 lib/thinking_sphinx/deltas/index_job.rb
thinking-sphinx-5.2.0 lib/thinking_sphinx/deltas/index_job.rb
thinking-sphinx-5.1.0 lib/thinking_sphinx/deltas/index_job.rb
thinking-sphinx-5.0.0 lib/thinking_sphinx/deltas/index_job.rb
thinking-sphinx-4.4.1 lib/thinking_sphinx/deltas/index_job.rb
thinking-sphinx-4.4.0 lib/thinking_sphinx/deltas/index_job.rb
thinking-sphinx-4.3.2 lib/thinking_sphinx/deltas/index_job.rb
thinking-sphinx-4.3.1 lib/thinking_sphinx/deltas/index_job.rb
thinking-sphinx-4.3.0 lib/thinking_sphinx/deltas/index_job.rb
thinking-sphinx-4.2.0 lib/thinking_sphinx/deltas/index_job.rb
thinking-sphinx-4.1.0 lib/thinking_sphinx/deltas/index_job.rb
thinking-sphinx-4.0.0 lib/thinking_sphinx/deltas/index_job.rb