Class: ThinkingSphinx::RakeInterface
- Inherits:
-
Object
- Object
- ThinkingSphinx::RakeInterface
- Defined in:
- lib/thinking_sphinx/rake_interface.rb
Constant Summary collapse
- DEFAULT_OPTIONS =
{:verbose => true}
Instance Method Summary collapse
- #configure ⇒ Object
- #daemon ⇒ Object
-
#initialize(options = {}) ⇒ RakeInterface
constructor
A new instance of RakeInterface.
- #rt ⇒ Object
- #sql ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ RakeInterface
Returns a new instance of RakeInterface.
6 7 8 9 |
# File 'lib/thinking_sphinx/rake_interface.rb', line 6 def initialize( = {}) @options = DEFAULT_OPTIONS.merge @options[:verbose] = false if @options[:silent] end |
Instance Method Details
#configure ⇒ Object
11 12 13 |
# File 'lib/thinking_sphinx/rake_interface.rb', line 11 def configure ThinkingSphinx::Commander.call :configure, configuration, end |
#daemon ⇒ Object
15 16 17 |
# File 'lib/thinking_sphinx/rake_interface.rb', line 15 def daemon @daemon ||= ThinkingSphinx::Interfaces::Daemon.new configuration, end |
#rt ⇒ Object
19 20 21 |
# File 'lib/thinking_sphinx/rake_interface.rb', line 19 def rt @rt ||= ThinkingSphinx::Interfaces::RealTime.new configuration, end |
#sql ⇒ Object
23 24 25 |
# File 'lib/thinking_sphinx/rake_interface.rb', line 23 def sql @sql ||= ThinkingSphinx::Interfaces::SQL.new configuration, end |