```ruby
require 'mongrel_cluster/recipes'

set :application, "obra"
set :repository, "svn+ssh://butlerpress.com/var/repos/racing_on_rails/trunk"

role :app, "app.obra.org"

set :deploy_to, "/srv/www/rails/#{application}"

desc "OBRA custom deployment"
task :deploy do
  transaction do
    update_code
    symlink
    set_permissions
  end

  restart
end

desc 'Pull in local OBRA code'
task :after_update_code do
  sudo "svn co svn+ssh://sw@butlerpress.com/var/repos/obra /srv/www/rails/#{application}/local"
end

desc "Set file permissions for Rails app"
task :set_permissions do
  sudo "chown -R wwwrun:rails #{deploy_to}/current/public"
  sudo "chown -R sw:rails #{deploy_to}/revisions.log"
  sudo "chmod +x /srv/www/rails/obra/current/public/dispatch.fcgi"
  sudo "chmod +x /srv/www/rails/obra/current/script/runner"
end

desc "Restart the web server"
task :restart, :roles => :app do
  restart_mongrel_cluster
end
```

Add SVN password to deplloy file!
user
```ruby
require 'mongrel_cluster/recipes'

set :application, "obra"
set :repository, "svn+ssh://butlerpress.com/var/repos/racing_on_rails/trunk"

role :app, "app.obra.org"

set :deploy_to, "/srv/www/rails/#{application}"

desc "OBRA custom deployment"
task :deploy do
  transaction do
    update_code
    symlink
    set_permissions
  end

  restart
end

desc 'Pull in local OBRA code'
task :after_update_code do
  sudo "svn co --password Merckx svn+ssh://sw@butlerpress.com/var/repos/obra /srv/www/rails/#{application}/local"
end

desc "Set file permissions for Rails app"
task :set_permissions do
  sudo "chown -R wwwrun:rails #{deploy_to}/current/public"
  sudo "chown -R sw:rails #{deploy_to}/revisions.log"
  sudo "chmod +x /srv/www/rails/obra/current/public/dispatch.fcgi"
  sudo "chmod +x /srv/www/rails/obra/current/script/runner"
end

desc "Restart the web server"
task :restart, :roles => :app do
  restart_mongrel_cluster
end
```
assistant