Sha256: 3f6be39d1960156f54427d2ba0e4b19827cc4e3d7a71a9c6713b7d3ecc9f8a03

Contents?: true

Size: 627 Bytes

Versions: 34

Compression:

Stored size: 627 Bytes

Contents

module ThinkingSphinx
  module Deltas
    class DeltaJob
      attr_accessor :index
      
      def initialize(index)
        @index = index
      end
      
      def perform
        return true unless ThinkingSphinx.updates_enabled? &&
          ThinkingSphinx.deltas_enabled?
        
        config = ThinkingSphinx::Configuration.instance
        client = Riddle::Client.new config.address, config.port
        
        output = `#{config.bin_path}indexer --config #{config.config_file} --rotate #{index}`
        puts output unless ThinkingSphinx.suppress_delta_output?
        
        true
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 7 rubygems

Version Path
DrMark-thinking-sphinx-1.1.14 lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb
DrMark-thinking-sphinx-1.1.15 lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb
DrMark-thinking-sphinx-1.1.6 lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb
dpickett-thinking-sphinx-1.1.12 lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb
dpickett-thinking-sphinx-1.1.4 lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb
freelancing-god-thinking-sphinx-1.1.0 lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb
freelancing-god-thinking-sphinx-1.1.1 lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb
freelancing-god-thinking-sphinx-1.1.10 lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb
freelancing-god-thinking-sphinx-1.1.11 lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb
freelancing-god-thinking-sphinx-1.1.12 lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb
freelancing-god-thinking-sphinx-1.1.14 lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb
freelancing-god-thinking-sphinx-1.1.15 lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb
freelancing-god-thinking-sphinx-1.1.16 lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb
freelancing-god-thinking-sphinx-1.1.17 lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb
freelancing-god-thinking-sphinx-1.1.18 lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb
freelancing-god-thinking-sphinx-1.1.19 lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb
freelancing-god-thinking-sphinx-1.1.2 lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb
freelancing-god-thinking-sphinx-1.1.20 lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb
freelancing-god-thinking-sphinx-1.1.21 lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb
freelancing-god-thinking-sphinx-1.1.3 lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb