Class: Sprinkle::Installers::Zypper
- Defined in:
- lib/sprinkle/installers/zypper.rb
Overview
Zypper Installer
Zypper is a command-line interface to ZYpp system management library. It mostly be used on Suse or OpenSuse.
Example Usage
Installing the magic_beans package via Zypper. Its all the craze these days.
package :magic_beans do
zypper 'magic_beans'
end
You may also specify multiple packages as an array:
package :magic_beans do
zypper %w(magic_beans magic_sauce)
end
or an argument list:
package :magic_beans do
zypper "magic_beans", "magic_sauce"
end
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) ⇒ Zypper
constructor
:nodoc:.
Methods inherited from Installer
Methods included from Configurable
#assert_delivery, #defaults, #method_missing, #option?
Constructor Details
#initialize(parent, *packages, &block) ⇒ Zypper
:nodoc:
30 31 32 33 34 |
# File 'lib/sprinkle/installers/zypper.rb', line 30 def initialize(parent, *packages, &block) #:nodoc: packages.flatten! super parent, &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
#packages ⇒ Object
:nodoc:
28 29 30 |
# File 'lib/sprinkle/installers/zypper.rb', line 28 def packages @packages end |