-
-
Save dwradcliffe/decb07113c2785e99312 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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