Class: ThinkingSphinx::Commands::ClearSQL
- Inherits:
-
Base
- Object
- Base
- ThinkingSphinx::Commands::ClearSQL
show all
- Defined in:
- lib/thinking_sphinx/commands/clear_sql.rb
Instance Method Summary
collapse
Methods inherited from Base
call, #call_with_handling
Methods included from WithOutput
#initialize
Instance Method Details
#call ⇒ Object
4
5
6
7
8
9
10
11
|
# 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_rf Dir["#{configuration.indices_location}/ts-*.tmp"]
end
|