class Object

Public Instance Methods

interface() click to toggle source
# File lib/thinking_sphinx/tasks.rb, line 45
def interface
  @interface ||= ThinkingSphinx::RakeInterface.new
end
rake(tasks) click to toggle source
# File lib/thinking_sphinx/capistrano/v2.rb, line 50
def rake(tasks)
  rails_env = fetch(:rails_env, 'production')
  rake = fetch(:rake, 'rake')
  tasks += ' INDEX_ONLY=true' if ENV['INDEX_ONLY'] == 'true'

  run "if [ -d #{release_path} ]; then cd #{release_path}; else cd #{current_path}; fi; if [ -f Rakefile ]; then #{rake} RAILS_ENV=#{rails_env} #{tasks}; fi;"
end