Sha256: 1e7d41cc2903cae2f98976d58e2a1db346671ce79b2f8b826f0deab1f856b8e0

Contents?: true

Size: 649 Bytes

Versions: 36

Compression:

Stored size: 649 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}#{config.indexer_binary_name} --config #{config.config_file} --rotate #{index}`
        puts output unless ThinkingSphinx.suppress_delta_output?
        
        true
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 12 rubygems

Version Path
DrMark-thinking-sphinx-1.2.5 lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb
DrMark-thinking-sphinx-1.2.6 lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb
bterlson-thinking-sphinx-1.2.8 lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb
dpickett-thinking-sphinx-1.1.23 lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb
ebeigarts-thinking-sphinx-1.1.21 lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb
ebeigarts-thinking-sphinx-1.1.22 lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb
ebeigarts-thinking-sphinx-1.2.10 lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb
factorylabs-thinking-sphinx-1.2.7 lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb
freelancing-god-thinking-sphinx-1.1.22 lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb
freelancing-god-thinking-sphinx-1.1.23 lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb
freelancing-god-thinking-sphinx-1.1.24 lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb
freelancing-god-thinking-sphinx-1.2.0 lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb
freelancing-god-thinking-sphinx-1.2.1 lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb
freelancing-god-thinking-sphinx-1.2.10 lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb
freelancing-god-thinking-sphinx-1.2.11 lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb
freelancing-god-thinking-sphinx-1.2.2 lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb
freelancing-god-thinking-sphinx-1.2.3 lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb
freelancing-god-thinking-sphinx-1.2.4 lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb
freelancing-god-thinking-sphinx-1.2.5 lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb
freelancing-god-thinking-sphinx-1.2.6 lib/thinking_sphinx/deltas/delayed_delta/delta_job.rb