Class: Sprinkle::Installers::UninstallPackage
- Defined in:
- lib/sprinkle/installers/install_package.rb
Instance Attribute Summary collapse
-
#packages ⇒ Object
:nodoc:.
Attributes inherited from Installer
#delivery, #options, #package, #post, #pre
Attributes included from Configurable
Instance Method Summary collapse
-
#initialize(parent, packages, &block) ⇒ UninstallPackage
constructor
:nodoc:.
Methods inherited from Installer
Methods included from Configurable
#assert_delivery, #defaults, #method_missing, #option?
Constructor Details
#initialize(parent, packages, &block) ⇒ UninstallPackage
:nodoc:
35 36 37 38 39 40 41 42 43 44 |
# File 'lib/sprinkle/installers/install_package.rb', line 35 def initialize(parent, packages, &block) #:nodoc: super parent, &block if packages.is_a?(Array) && packages.first.is_a?(Array) packages = packages.first else packages = [packages] unless packages.is_a? Array end @packages = packages end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Sprinkle::Configurable
Instance Attribute Details
#packages ⇒ Object
:nodoc:
33 34 35 |
# File 'lib/sprinkle/installers/install_package.rb', line 33 def packages @packages end |