class Object

Public Instance Methods

rake(*tasks) click to toggle source
# File lib/thinking_sphinx/deploy/capistrano.rb, line 91
def rake(*tasks)
  rails_env = fetch(:rails_env, "production")
  rake = fetch(:rake, "rake")
  tasks.each do |t|
    run "if [ -d #{release_path} ]; then cd #{release_path}; else cd #{current_path}; fi; if [ -f Rakefile ]; then #{rake} RAILS_ENV=#{rails_env} #{t}; fi;"
  end
end
sphinx_pid() click to toggle source
# File lib/thinking_sphinx/tasks.rb, line 136
def sphinx_pid
  ThinkingSphinx.sphinx_pid
end
sphinx_running?() click to toggle source
# File lib/thinking_sphinx/tasks.rb, line 140
def sphinx_running?
  ThinkingSphinx.sphinx_running?
end