Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
require 'rake' require 'rake/testtask' PIPES_PRODUCTION_DOMAIN = 'pipes.re3.yahoo.com' LIVE_PIPES_BOXES = 16 namespace :test do LIVE_PIPES_BOXES.times do |n| Rake::TestTask.new( "live_#{n}" ) do |t| ENV['PIPES_SERVER'] = "m#{n+2}.#{PIPES_PRODUCTION_DOMAIN}" t.libs << "test" t.test_files = FileList['test/integration/test*.rb'] t.verbose = true #t.ruby_opts = ['--server=m3.pipes.re3.yahoo.com'] end end Rake::TestTask.new(:production_boxes) do |t| LIVE_PIPES_BOXES.times do |n| puts "Testing production server: #{ENV['PIPES_SERVER']}" Rake::Task["live_#{n}"].invoke end end end
This paste will be private.
From the Design Piracy series on my blog: