class ThinkingSphinx::Commands::ClearSQL

Public Instance Methods

call() click to toggle source
# File lib/thinking_sphinx/commands/clear_sql.rb, line 4
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 Instance Methods

type() click to toggle source
# File lib/thinking_sphinx/commands/clear_sql.rb, line 15
def type
  'clear_sql'
end