Sha256: 7796935311f0e5daaf744ede9db0b5aeef9fb81757fb594708ba26d6e3d4ae96

Contents?: true

Size: 369 Bytes

Versions: 16

Compression:

Stored size: 369 Bytes

Contents

# frozen_string_literal: true

class ThinkingSphinx::Commands::ClearSQL < ThinkingSphinx::Commands::Base
  def call
    options[:indices].each do |index|
      index.render
      Dir["#{index.path}.*"].each { |path| FileUtils.rm path }
    end

    FileUtils.rm_r Dir["#{configuration.indices_location}/ts-*.tmp"]
  end

  private

  def type
    'clear_sql'
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

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