Class AutomateIt::PackageManager::PEAR
In: lib/automateit/package_manager/pear.rb
Parent: ::AutomateIt::PackageManager::BaseDriver

PackageManager::PEAR

A PackageManager driver for PEAR (PHP Extension and Application Repository), manages software packages using the pear command.

Using specific channels

To install a package from the default PEAR channel, just specify it‘s name, e.g. HTML_QuickForm.

To install a package from another channel, you must specify the name prefixed with the channel‘s URL, e.g. pear.symfony-project.com/symfony, so that the channel can be automatically added as needed.

IMPORTANT: DO NOT specify a remote channel‘s alias, e.g. symfony/symfony, because this provides no way to discover the channel.

Methods

Public Instance methods

IMPORTANT: See documentation at the top of this file for how to correctly install packages from a specific channel.

Options:

  • :force — Force installation, needed when installing unstable packages

See AutomateIt::PackageManager#install

See AutomateIt::PackageManager#installed?

See AutomateIt::PackageManager#not_installed?

Protected Instance methods

Retrieve a hash containing all installed packages, indexed by package name. Each value is a hash containing values for :version and :state.

[Validate]