Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
## will_paginate:install Sake task # gem install sake # sake -i http://pastie.org/161203.txt desc %[Install the plugin in vendor/plugins/will_paginate] task 'will_paginate:install' do require 'fileutils' wp_dir = 'vendor/plugins/will_paginate' begin FileUtils.mkdir wp_dir rescue Errno::EEXIST $stderr.puts "#{wp_dir} already exists: updating ..." end url = 'http://github.com/mislav/will_paginate/tarball/master' system %{wget -nv #{url} -O- | tar xzv -C #{wp_dir} --strip 1} end
This paste will be private.
From the Design Piracy series on my blog: