Created
March 6, 2010 03:29
-
-
Save xenda/323475 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
files = File.read("gems.txt") | |
files.each do |line| | |
line = line.chop!.split(" (") | |
#puts "Gema: #{line[0]} Version: #{line[1].chop!}" | |
puts "Instalando gema: #{line[0]}" | |
line[1].chop!.split(", ").reverse.each do |version| | |
puts "Instalando version #{version}" | |
puts "sudo gem install #{line[0]} -v=#{version} --no-ri --no-rdoc" | |
result = `sudo gem install #{line[0]} -v=#{version} --no-ri --no-rdoc` | |
puts result | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment