Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
# Alastair Brunton's Capistrano Tasks Capistrano.configuration(:must_exist).load do desc "Rename production database.yml to live app" task :rename_db_file do run "cp #{release_path}/config/database.production #{release_path}/config/database.yml" end desc "Keep the releases clean" task :after_deploy do cleanup end desc "Stop the nginx webserver" task :nginx_stop do sudo '/etc/init.d/nginx stop' end desc "Start the nginx webserver" task :nginx_start do sudo '/etc/init.d/nginx start' end end
This paste will be private.
From the Design Piracy series on my blog: