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 "The following command failed:\n  \#{cmd}\n\nThis could be caused by a PATH issue in the environment of cron/passenger/etc. Your current PATH:\n  \#{ENV['PATH']}\nYou can set the path to your indexer and searchd binaries using the bin_path property in config/sphinx.yml:\n  production:\n    bin_path: '/usr/local/bin'\n"
  end
end