Class: Sprinkle::Installers::Pear

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

Overview

Pear Package Installer

Instance Attribute Summary collapse

Attributes inherited from Installer

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

Attributes included from Configurable

#delivery

Instance Method Summary collapse

Methods inherited from Installer

#process

Methods included from Configurable

#assert_delivery, #defaults, #method_missing, #option?

Constructor Details

#initialize(parent, *packages, &block) ⇒ Pear

:nodoc:



8
9
10
11
12
13
14
15
16
# File 'lib/sprinkle/installers/pear.rb', line 8

def initialize(parent, *packages, &block) #:nodoc:
  packages.flatten!

  options.update(packages.pop) if packages.last.is_a?(Hash)

  super parent, options, &block

  @packages = packages
end

Dynamic Method Handling

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

Instance Attribute Details

#packagesObject

:nodoc:



6
7
8
# File 'lib/sprinkle/installers/pear.rb', line 6

def packages
  @packages
end