Sha256: ce0e8253b51afaadc3916c2037442f02f94e14e19cf7c9e17328407c2cbcd88c
Contents?: true
Size: 564 Bytes
Versions: 4
Compression:
Stored size: 564 Bytes
Contents
# A simple job class that processes a given index. # class ThinkingSphinx::Deltas::DelayedDelta::DeltaJob # Initialises the object with an index name. # # @param [String] index the name of the Sphinx index # def initialize(index) @index = index end # Shows index name in Delayed::Job#name. # def display_name "Thinking Sphinx: Process #{@index}" end # Processes just the given index. Output is hidden only if the quiet_deltas # setting is true. # def perform ThinkingSphinx::Deltas::IndexJob.new(@index).perform end end
Version data entries
4 entries across 4 versions & 1 rubygems