Top Level Namespace
Defined Under Namespace
Modules: SearchAsArray, ThinkingSphinx Classes: String
Instance Method Summary collapse
- #sphinx_pid ⇒ Object
- #sphinx_running? ⇒ Boolean
-
#system!(cmd) ⇒ Object
a fail-fast, hopefully helpful version of system.
Instance Method Details
#sphinx_pid ⇒ Object
143 144 145 |
# File 'lib/thinking_sphinx/tasks.rb', line 143 def sphinx_pid ThinkingSphinx.sphinx_pid end |
#sphinx_running? ⇒ Boolean
147 148 149 |
# File 'lib/thinking_sphinx/tasks.rb', line 147 def sphinx_running? ThinkingSphinx.sphinx_running? end |
#system!(cmd) ⇒ Object
a fail-fast, hopefully helpful version of system
152 153 154 155 156 157 158 159 160 161 162 163 164 165 |
# File 'lib/thinking_sphinx/tasks.rb', line 152 def system!(cmd) unless system(cmd) raise <<-SYSTEM_CALL_FAILED The following command failed: #{cmd} This could be caused by a PATH issue in the environment of cron/passenger/etc. Your current PATH: #{ENV['PATH']} You can set the path to your indexer and searchd binaries using the bin_path property in config/sphinx.yml: production: bin_path: '/usr/local/bin' SYSTEM_CALL_FAILED end end |