Class: ThinkingSphinx::Deltas::ResqueDelta::DeltaJob

Inherits:
Object
  • Object
show all
Defined in:
lib/thinking_sphinx/deltas/resque_delta/delta_job.rb

Overview

A simple job class that processes a given index.

Class Method Summary collapse

Class Method Details

.perform(index) ⇒ Object

Runs Sphinx’s indexer tool to process the index. Currently assumes Sphinx is running.

Parameters:

  • index (String)

    the name of the Sphinx index



11
12
13
# File 'lib/thinking_sphinx/deltas/resque_delta/delta_job.rb', line 11

def self.perform(index)
  ThinkingSphinx::Deltas::IndexJob.new(index).perform
end