Class: Sprinkle::Installers::Smart

Inherits:
Installer
  • Object
show all
Defined in:
lib/sprinkle/installers/smart.rb

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) ⇒ Smart

:nodoc:



6
7
8
9
10
# File 'lib/sprinkle/installers/smart.rb', line 6

def initialize(parent, packages, &block) #:nodoc:
  super parent, &block
  packages = [packages] unless packages.is_a? Array
  @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:



4
5
6
# File 'lib/sprinkle/installers/smart.rb', line 4

def packages
  @packages
end