Class AutomateIt::PackageManager::Gem
In: lib/automateit/package_manager/gem.rb
Parent: AutomateIt::PackageManager::BaseDriver

PackageManager::Gem

The Gem driver for the PackageManager provides a way to manage software packages for RubyGems using the gem command.

Specifying version of gem to use

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

Methods

Attributes

gem  [RW] 

Public Instance methods

Special options:

  • :docs — If set to false, won‘t install rdoc or ri.
  • :source — URL source to retrieve Gems from.

See PackageManager#install

See PackageManager#installed?

See PackageManager#not_installed?

:programs => %w(gem),

[Validate]