Thanks a lot. It works for me. I've pasted below my new options.

I've another question:

Is it possible to config capistrano to use "ssh -XaC" instead of
"ssh", so I can forward my authentication agent and have access to the
svn server without capistrano asking me for a password ?

Thanks.

#
=============================================================================
# SSH OPTIONS
#
=============================================================================
ssh_options[:keys] = %w(~/.ssh/id_dsa)
ssh_options[:forward_agent] = true

#
=============================================================================
# SVN OPTIONS
#
=============================================================================
default_run_options[:pty] = true
set :scm_username, ENV['svn_user'] || ENV['USER'] || Proc.new
{ Capistrano::CLI.password_prompt('SVN User: ') }
set :scm_password, Proc.new { Capistrano::CLI.password_prompt('SVN
Password: ') }
set :repository, "svn+ssh://[EMAIL PROTECTED]/srv/svn/
ggcc-questionnaire/trunk "

On Nov 23, 12:59 am, Jamis Buck <[EMAIL PROTECTED]> wrote:
> cap2 uses scm_username and scm_password, rather than the svn_*
> options that cap1 used.
>
> - Jamis
>
> On Nov 22, 2007, at 3:55 PM, VPC wrote:
>
>
>
> > Hi.
>
> > I'm using next options, and I found that capistrano doesn't asks me
> > for the svn password, so it can't log into the svn account and
> > download the updates.
> > How can I do it?
>
> > Thanks in advance.
>
> > #
> > ======================================================================
> > =======
> > # SVN OPTIONS
> > #
> > ======================================================================
> > =======
> > set :svn_user, ENV['svn_user'] ||
> >     Proc.new { Capistrano::CLI.password_prompt('SVN User: ') }
> > set :svn_password, Proc.new { Capistrano::CLI.password_prompt('SVN
> > Password: ') }
> > set :repository,
> > "svn+ssh://[EMAIL PROTECTED]/srv/svn/ggcc-questionnaire/
> > trunk"
> > #       Proc.new { "--username #{svn_user} " +
> > #                  "--password #{svn_password} " +
> > #                  "http://your.domain.tld/path/to/svn/#{application}/
> > trunk/" }
>
> > >
>
>
>  smime.p7s
> 3KDownload

--~--~---------~--~----~------------~-------~--~----~
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