documentation icon indicating copy to clipboard operation
documentation copied to clipboard

Recommended use of `ask` is incorrect

Open mattbrictson opened this issue 10 years ago • 1 comments

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.

mattbrictson avatar May 31 '16 19:05 mattbrictson

This issue was moved to capistrano/capistrano#1758

leehambley avatar Aug 29 '16 08:08 leehambley