On Mar 16, 7:39 pm, Rob Biedenharn <R... / AgileConsultingLLC.com>
wrote:
> On Mar 16, 2007, at 1:15 PM, Encapsulin wrote:
>
>
>
> > Hello everybody,
> > I'm trying to include capistrano support into RoR application, as
> > descripbed in the 2nd version of the Agile Rails book. But after
> > invoking the command :
> > # rake remote:cold_deploy
> >  I've received the message "Capistrano/Rake integration is
> > deprecated": ##################################
> > rake remote:cold_deploy (in /var/www/ruby/demo) Capistrano/Rake
> > integration is deprecated. Please invoke the 'cap' command directly:
> > `cap cold_deploy' * executing task cold_deploy * executing task update
> > ** transaction: start * executing task update_code * querying latest
> > revision... svn: REPORT request failed on '/svn/demo/!svn/bc/0/trunk'
> > svn: '/svn/demo/!svn/bc/0/trunk' path not found
> > [update_code] transaction: rollback * [update_code] rolling back *
> > executing "rm -rf /var/www/ruby/demo/releases/20070315145548" servers:
> > ["localhost"] Password: [localhost] executing command command finished
> > rake aborted! Could not determine latest revision
> > (See full trace by running task with-trace)
> > ##################################
> > Why capistrano is deprecated? What does it mean? How to fix?
> > Thanks in advance.
>
> It just means that the rake tasks for calling capistrano recipes is
> going away.  You can run the same thing directly with capistrano (as
> the error message says).
>
> rake remote:cold_deploy
>
> is just one step removed from:
>
> cap cold_deploy
>
> Less typing, too!
>
> -Rob
>
> Rob Biedenharn          http://agileconsultingllc.com
> R... / AgileConsultingLLC.com


Thank you for quik response!

after invoking the command "cap cold_deploy" I received the follofing:
"Could not determine latest revision (RuntimeError)" ...why?what does
it mean?

# cap cold_deploy
  * executing task cold_deploy
  * executing task update
 ** transaction: start
  * executing task update_code
  * querying latest revision...
svn: REPORT request failed on '/svn/demo/!svn/bc/0/trunk'
svn: '/svn/demo/!svn/bc/0/trunk' path not found
*** [update_code] transaction: rollback
  * [update_code] rolling back
  * executing "rm -rf /var/www/ruby_deploy/demo/releases/
20070316185001"
    servers: ["localhost"]
Password:
    [localhost] executing command
    command finished
/usr/lib/ruby/gems/1.8/gems/capistrano-1.4.1/lib/capistrano/scm/
subversion.rb:24:in `latest_revision': Could not determine latest
revision (RuntimeError)
        from /usr/lib/ruby/gems/1.8/gems/capistrano-1.4.1/lib/
capistrano/configuration.rb:62:in `initialize'
        from /usr/lib/ruby/gems/1.8/gems/capistrano-1.4.1/lib/
capistrano/configuration.rb:89:in `call'
        from /usr/lib/ruby/gems/1.8/gems/capistrano-1.4.1/lib/
capistrano/configuration.rb:89:in `[]'
        from /usr/lib/ruby/gems/1.8/gems/capistrano-1.4.1/lib/
capistrano/configuration.rb:236:in `method_missing'
        from /usr/lib/ruby/gems/1.8/gems/capistrano-1.4.1/lib/
capistrano/scm/subversion.rb:63:in `checkout'
        from /usr/lib/ruby/gems/1.8/gems/capistrano-1.4.1/lib/
capistrano/recipes/standard.rb:80:in `load'
        from /usr/lib/ruby/gems/1.8/gems/capistrano-1.4.1/lib/
capistrano/actor.rb:159:in `instance_eval'
        from /usr/lib/ruby/gems/1.8/gems/capistrano-1.4.1/lib/
capistrano/actor.rb:159:in `update_code'
         ... 13 levels...
        from /usr/lib/ruby/gems/1.8/gems/capistrano-1.4.1/lib/
capistrano/cli.rb:12:in `execute!'
        from /usr/lib/ruby/gems/1.8/gems/capistrano-1.4.1/bin/cap:11
        from /usr/bin/cap:16:in `load'
        from /usr/bin/cap:16