class ThinkingSphinx::Commands::ClearRealTime

Public Instance Methods

call() click to toggle source
# File lib/thinking_sphinx/commands/clear_real_time.rb, line 4
def call
  options[:indices].each do |index|
    index.render
    Dir["#{index.path}.*"].each { |path| FileUtils.rm path }
  end

  FileUtils.rm_r(binlog_path) if File.exists?(binlog_path)
end

Private Instance Methods

binlog_path() click to toggle source
# File lib/thinking_sphinx/commands/clear_real_time.rb, line 15
def binlog_path
  configuration.searchd.binlog_path
end
type() click to toggle source
# File lib/thinking_sphinx/commands/clear_real_time.rb, line 19
def type
  'clear_realtime'
end