Sha256: 329d6801f0dcf5a34fcc820d97012ffe693c0afcd5b1e4f8c51316b6761d3fef
Contents?: true
Size: 1.45 KB
Versions: 1
Compression:
Stored size: 1.45 KB
Contents
namespace :ts do desc 'Generate the Sphinx configuration file' task :configure => :environment do interface.configure end desc 'Generate the Sphinx configuration file and process all indices' task :index => :environment do interface.index( ENV['INDEX_ONLY'] != 'true', !Rake.application.options.silent ) end desc 'Clear out Sphinx files' task :clear => :environment do interface.clear_all end desc 'Clear out real-time index files' task :clear_rt => :environment do interface.clear_real_time end desc 'Generate fresh index files for real-time indices' task :generate => :environment do interface.prepare interface.generate end desc 'Stop Sphinx, index and then restart Sphinx' task :rebuild => [:stop, :clear, :index, :start] desc 'Stop Sphinx, clear files, reconfigure, start Sphinx, generate files' task :regenerate => [:stop, :clear_rt, :configure, :start, :generate] desc 'Restart the Sphinx daemon' task :restart => [:stop, :start] desc 'Start the Sphinx daemon' task :start => :environment do options = {} options[:nodetach] = true if ENV['NODETACH'] == 'true' interface.start(options) end desc 'Stop the Sphinx daemon' task :stop => :environment do interface.stop end desc 'Determine whether Sphinx is running' task :status => :environment do interface.status end def interface @interface ||= ThinkingSphinx::RakeInterface.new end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
thinking-sphinx-3.2.0 | lib/thinking_sphinx/tasks.rb |