Class: Sprinkle::Installers::Pear

Inherits:
Installer show all
Defined in:
lib/sprinkle/installers/pear.rb

Overview

Pear package installed

Installs the specified pear package

Example Usage

package :php_stuff do
  pear 'PHP_Compat'
  verify { has_pear 'PHP_Compat' }
end

Instance Attribute Summary collapse

Attributes inherited from Installer

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

Instance Method Summary collapse

Methods inherited from Installer

#announce, api, #commands_from_block, #defer, #escape_shell_arg, inherited, #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

#initialize(parent, package_name, &block) ⇒ Pear

:nodoc:


28
29
30
31
# File 'lib/sprinkle/installers/pear.rb', line 28

def initialize(parent, package_name, &block) #:nodoc:
  super parent, &block
  @package_name = package_name
end

Dynamic Method Handling

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

Instance Attribute Details

#package_nameObject

Returns the value of attribute package_name


14
15
16
# File 'lib/sprinkle/installers/pear.rb', line 14

def package_name
  @package_name
end