thanks I was having the same problem :)

On Jan 19, 2:56 pm, Jamis Buck <[email protected]> wrote:
> When passing a block to set(), the block is not evaluated immediately,
> but is instead evaluated the next time the variable is referenced. It's
> called "lazy evaluation", and lets you defer the evaluation until the
> variable is actually needed.
>
> If you want it evaluated immediately, don't use a block:
>
>   set(:user, Capistrano::CLI.ui.ask("User name: "))
>
> - Jamis
>
> On 1/19/09 5:49 AM, Gerhardus Geldenhuis wrote:
>
> > Hi
> > I can't get the following code snippet to work.
>
> > task :promptme, :roles => :gg do
> >   set(:user) { Capistrano::CLI.ui.ask("User name: ") }
> > end
>
> > I expected it to prompt me on the command line when running cap
> > promptme but it does not prompt me at all.
>
> > cap promptme
> >   * executing `promptme'
>
> > When running the command it just exits immediately.
>
> > Any ideas?
>
> > Best Regards
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to