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