That's almost exactly what cap's sudo does, in fact, though it inlines the logon password proc.
- Jamis On Feb 14, 2007, at 9:45 AM, Neil Wilson wrote: > > Might be useful to make 'sudo' equivalent to > > run(run_method + command, options, &handle_logon_password) > > Having a 'Proc' than can handle password prompt responses would make > coding out database logins a doddle. > > NeilW > > On 14 Feb, 16:21, Jamis Buck <[EMAIL PROTECTED]> wrote: >> The only real reason for "sudo" is so that Capistrano can know to >> look for the password prompt. That's the only difference; when >> running with the "sudo" helper, if sudo prompts for a password, >> Capistrano will forward that prompt on to the user. > > > > --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
