Skip to content

Instantly share code, notes, and snippets.

@dwradcliffe
Created January 28, 2014 14:06
Show Gist options
  • Save dwradcliffe/decb07113c2785e99312 to your computer and use it in GitHub Desktop.
Save dwradcliffe/decb07113c2785e99312 to your computer and use it in GitHub Desktop.
desc 'Bring the gems through the gemcutter process'
task :import => :environment do
gems = Dir[File.join(ARGV[1] || "#{Gem.path.first}/cache", "*.gem")].sort.reverse
puts "Processing #{gems.size} gems..."
gems.each do |path|
puts "Processing #{path}"
cutter = Pusher.new(nil, File.open(path))
cutter.process || puts cutter.message
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment