Class: Sprinkle::Installers::OpensolarisPkg

Inherits:
Installer show all
Defined in:
lib/sprinkle/installers/opensolaris_pkg.rb

Overview

OpenSolaris Package Installer

The Pkg package installer installs OpenSolaris packages.

Example Usage

Installing the magic_beans package.

package :magic_beans do
  opensolaris_pkg 'magic_beans'
end

You may also specify multiple packages as an array:

package :magic_beans do
  opensolaris_pkg %w(magic_beans magic_sauce)
end

Note

If you are using capistrano as the deployment method you will need to add the following lines to your deploy.rb set :sudo, ‘pfexec’ set :sudo_prompt, ”

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

:nodoc:



29
30
31
32
33
# File 'lib/sprinkle/installers/opensolaris_pkg.rb', line 29

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:



27
28
29
# File 'lib/sprinkle/installers/opensolaris_pkg.rb', line 27

def packages
  @packages
end