Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
namespace :ferret do desc "Stop the Ferret DRb server" task :stop, :roles => :app do run "cd #{current_path}; ruby script/ferret_server -e #{rails_env} stop" end desc "Start the Ferret DRb server" task :start, :roles => :app do run "cd #{current_path}; ruby script/ferret_server -e #{rails_env} start" end desc "Restart the Ferret DRb server" task :restart, :roles => :app do top.ferret.stop sleep 1 top.ferret.start end end after "memcache:start", "ferret:start" before "memcache:stop", "ferret:stop
This paste will be private.
From the Design Piracy series on my blog: