Class: Sprinkle::Installers::Rpm
- Defined in:
- lib/sprinkle/installers/rpm.rb
Instance Attribute Summary collapse
-
#packages ⇒ Object
Returns the value of attribute packages.
Attributes inherited from Installer
Instance Method Summary collapse
-
#initialize(parent, packages, &block) ⇒ Rpm
constructor
A new instance of Rpm.
Methods inherited from Installer
#defaults, #method_missing, #process
Constructor Details
#initialize(parent, packages, &block) ⇒ Rpm
Returns a new instance of Rpm.
6 7 8 9 10 |
# File 'lib/sprinkle/installers/rpm.rb', line 6 def initialize(parent, packages, &block) 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::Installers::Installer
Instance Attribute Details
#packages ⇒ Object
Returns the value of attribute packages.
4 5 6 |
# File 'lib/sprinkle/installers/rpm.rb', line 4 def packages @packages end |