documentation
documentation copied to clipboard
Recommended use of `ask` is incorrect
The documentation recommends this pattern:
set :database_password, ask('Enter the database password:', 'default', echo: false)
But this is wrong. The first argument to ask is supposed to be a variable name, not a prompt string. Technically the code still works (since the outer set overrides the implicit set within ask), but it is very misleading.
This issue was moved to capistrano/capistrano#1758