Top Level Namespace

Defined Under Namespace

Modules: Cucumber, SearchAsArray, ThinkingSphinx Classes: String

Instance Method Summary collapse

Instance Method Details

#sphinx_pidObject



111
112
113
# File 'lib/thinking_sphinx/tasks.rb', line 111

def sphinx_pid
  ThinkingSphinx.sphinx_pid
end

#sphinx_running?Boolean

Returns:

  • (Boolean)


115
116
117
# File 'lib/thinking_sphinx/tasks.rb', line 115

def sphinx_running?
  ThinkingSphinx.sphinx_running?
end

#system!(cmd) ⇒ Object

a fail-fast, hopefully helpful version of system



120
121
122
123
124
125
126
127
128
129
130
131
132
133
# File 'lib/thinking_sphinx/tasks.rb', line 120

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