Path: | lib/automateit/package_manager/gem.rb |
Last Update: | Wed Nov 04 20:51:52 -0800 2009 |
The Gem driver for the PackageManager provides a way to manage software packages for RubyGems using the gem command.
You can specify the specific version of a particular gem to use with the :version option, e.g., the "2.1.2" below:
package_manager.install "rails", :with => :gem, :version => "2.1.2"
Note that you can only install one single gem with a version at a time.
You can specify the command to use with each call using the :gem option, e.g., the "gem1.8" below:
package_manager.install "rails", :with => :gem, :gem => "gem1.8"
Or set a default and all subsequent calls will use it:
package_manager[:gem].setup(:gem => "gem1.8") package_manager.install "rails", :with => :gem