Class: Sprinkle::Installers::Yum

Inherits:
PackageInstaller show all
Defined in:
lib/sprinkle/installers/yum.rb

Overview

The Yum package installer installs RPM packages.

Example Usage

Installing the magic_beans RPM via Yum. Its all the craze these days.

package :magic_beans do
  yum 'magic_beans', 'magic_corn'
  verify do
    has_yum 'magic_beans' 
    has_yum 'magic_corn' 
  end
end

To install a specific version just add that version after the name

package :magic_beans do
  yum "magic_beans-3.0" 
end

Instance Attribute Summary

Attributes inherited from PackageInstaller

#packages

Attributes inherited from Installer

#delivery, #options, #package, #post, #pre

Method Summary

Methods inherited from PackageInstaller

auto_api, #initialize, #install_package

Methods inherited from Installer

#announce, api, #commands_from_block, #defer, #escape_shell_arg, inherited, #initialize, #install_sequence, #method_missing, #per_host?, #post_process, #process, subclasses, verify_api

Methods included from Sudo

#sudo?, #sudo_cmd, #sudo_stack

Methods included from Attributes

#defaults, #set_defaults

Constructor Details

This class inherits a constructor from Sprinkle::Installers::PackageInstaller

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Sprinkle::Installers::Installer