On Nov 15, 2011, at 10:56 AM, Lee Hambley wrote:
> I meant, by "written long form" that it wasn't valid syntax… but it was
> supposed to be easier to understand:
>
> set(:branch, lambda { .... })
>
> is the required way...
----
something about capistrano makes global variables local and makes me crazy...
set(:user, lambda do
if $my_user == nil then
$my_user = Capistrano::CLI.ui.ask("Your SSH User name : ")
else
$my_user
end
end)
and if any 'task' has multiple deploys or invoked before/after tasks that call
:user a second time, I am still asked for the user name a second time.
Craig
--
* You received this message because you are subscribed to the Google Groups
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/capistrano?hl=en