Class: ThinkingSphinx::Commands::StartDetached
- Inherits:
-
Base
- Object
- Base
- ThinkingSphinx::Commands::StartDetached
show all
- Defined in:
- lib/thinking_sphinx/commands/start_detached.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
12
13
14
|
# File 'lib/thinking_sphinx/commands/start_detached.rb', line 4
def call
FileUtils.mkdir_p configuration.indices_location unless skip_directories?
result = controller.start :verbose => options[:verbose]
if command :running
log "Started searchd successfully (pid: #{controller.pid})."
else
handle_failure result
end
end
|