Class: Sprinkle::Installers::Zypper

Inherits:
Installer
  • Object
show all
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

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

#packagesObject

:nodoc:



28
29
30
# File 'lib/sprinkle/installers/zypper.rb', line 28

def packages
  @packages
end