Cached SVN checkouts save bandwidth

Liquid error: undefined method `login' for nil:NilClass : June 29th, 2006

In the past I've deployed apps by hand. Logging into a server, svn uping, and restarting didn't seem to be such a big deal most days. Recently I got my first "Rails Machine":http://www.railsmachine.com/ account and set about learning Capistrano. Now I'm sold on the Capistrano way of life, but man, full SVN checkouts of Rails apps over dial-up is a slow process. I was talking in channel one day and octopod shared "http://pastie.caboo.se/1738":http://pastie.caboo.se/1738 with me. I finally got around to using it and since I plan on using it for all my apps I broke it off into a separate file you can simply include and use like this:
require 'config/cache_svn'

set :repository, "svn://your.repository/path/here"
set :repository_cache, "#{shared_path}/svn_trunk/"
h2. Download the source *Updated:* Made changes to source to take "Blake Walter's fix":http://thatswhatimtalkingabout.org/news/2006/8/10/cached-svn-for-capistrano-upgrade into account. The magic that makes it work - "svn_cache.rb":http://pastie.caboo.se/2973

3 Responses to “Cached SVN checkouts save bandwidth”

  1. Chris McGrath Says:
    Thanks for tidying up and releasing this Josh. It saved us lots of time checking out a large repo from the DSL connected box it is hosted on.
  2. Dmitris Says:

    Cool!

  3. Aleksiu Says:

    Nice

Sorry, comments are closed for this article.