freelancing-god/thinking-sphinx — Issue #341: Capistrano and `symlink_sphinx_indexes`
Author: GBH
Created: 2012-02-22 18:25:15+00:00
State: open

I tried to follow current documentation for deploying with capistrano, but I get this:

```
/Users/oleg/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/configuration/namespaces.rb:188:in `method_missing': undefined local variable or method `symlink_sphinx_indexes' for # (NameError)
from ./config/deploy.rb:52:in `block (2 levels) in load'
from /Users/oleg/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/configuration/execution.rb:139:in `instance_eval'
from /Users/oleg/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/configuration/execution.rb:139:in `invoke_task_directly'
from /Users/oleg/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/configuration/callbacks.rb:27:in `invoke_task_directly_with_callbacks'
from /Users/oleg/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/configuration/execution.rb:89:in `execute_task'
from /Users/oleg/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/configuration/callbacks.rb:32:in `invoke_task_directly_with_callbacks'
from /Users/oleg/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/configuration/execution.rb:89:in `execute_task'
from /Users/oleg/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/configuration/namespaces.rb:186:in `method_missing'
from /Users/oleg/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/configuration/namespaces.rb:104:in `block in task'
from /Users/oleg/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/recipes/deploy.rb:202:in `block (3 levels) in load'
from /Users/oleg/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/configuration/execution.rb:56:in `transaction'
from /Users/oleg/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/configuration/namespaces.rb:186:in `method_missing'
from /Users/oleg/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/recipes/deploy.rb:201:in `block (2 levels) in load'
from /Users/oleg/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/configuration/execution.rb:139:in `instance_eval'
from /Users/oleg/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/configuration/execution.rb:139:in `invoke_task_directly'
from /Users/oleg/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/configuration/callbacks.rb:27:in `invoke_task_directly_with_callbacks'
from /Users/oleg/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/configuration/execution.rb:89:in `execute_task'
from /Users/oleg/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/configuration/namespaces.rb:186:in `method_missing'
from /Users/oleg/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/configuration/namespaces.rb:104:in `block in task'
from /Users/oleg/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/recipes/deploy.rb:169:in `block (2 levels) in load'
from /Users/oleg/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/configuration/execution.rb:139:in `instance_eval'
from /Users/oleg/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/configuration/execution.rb:139:in `invoke_task_directly'
from /Users/oleg/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/configuration/callbacks.rb:27:in `invoke_task_directly_with_callbacks'
from /Users/oleg/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/configuration/execution.rb:89:in `execute_task'
from /Users/oleg/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/configuration/execution.rb:101:in `find_and_execute_task'
from /Users/oleg/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/cli/execute.rb:46:in `block in execute_requested_actions'
from /Users/oleg/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/cli/execute.rb:45:in `each'
from /Users/oleg/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/cli/execute.rb:45:in `execute_requested_actions'
from /Users/oleg/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/cli/help.rb:19:in `execute_requested_actions_with_help'
from /Users/oleg/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/cli/execute.rb:34:in `execute!'
from /Users/oleg/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/lib/capistrano/cli/execute.rb:14:in `execute'
from /Users/oleg/.rvm/gems/ruby-1.9.2-p290/gems/capistrano-2.9.0/bin/cap:4:in `'
from /Users/oleg/.rvm/gems/ruby-1.9.2-p290/bin/cap:19:in `load'
from /Users/oleg/.rvm/gems/ruby-1.9.2-p290/bin/cap:19:in `

'
```

Also there's a deprecation warning:
```
[Deprecation Warning] Naming tasks with before_ and after_ is deprecated, please see the new before() and after() methods. (Offending task name was before_update_code)
[Deprecation Warning] Naming tasks with before_ and after_ is deprecated, please see the new before() and after() methods. (Offending task name was after_update_code)
```
Perhaps docs are out of date?