Skip to content

Instantly share code, notes, and snippets.

@xenda
Created March 6, 2010 03:29
Show Gist options
  • Save xenda/323475 to your computer and use it in GitHub Desktop.
Save xenda/323475 to your computer and use it in GitHub Desktop.
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