Skip to content

Instantly share code, notes, and snippets.

@hoverlover
Created March 3, 2010 23:59
Show Gist options
  • Save hoverlover/321219 to your computer and use it in GitHub Desktop.
Save hoverlover/321219 to your computer and use it in GitHub Desktop.
# open the file containing the gems to load and install each
File.open(Dir.pwd << "/gems.txt", "r") do |f|
while (line = f.gets)
puts `sudo gem install --no-ri --no-rdoc #{line}` unless line.strip.empty?
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment