Class: Sprinkle::Installers::FreebsdPortinstall

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

Overview

FreeBSD Portinstall Installer

The Portinstall installer installs FreeBSD ports. It uses the ports-mgmt/portupgrade port to install. Before usage, the ports system must be installed and read on the target operating system. It is recommended to use ‘portsnap fetch extract` to install the ports system.

Example Usage

Installing the magic_beans port.

package :magic_beans do
  freebsd_portinstall 'magic/magic_beans'
end

Instance Attribute Summary collapse

Attributes inherited from Installer

#delivery, #options, #package, #post, #pre

Instance Method Summary collapse

Methods inherited from Installer

#announce, api, #commands_from_block, #defer, #escape_shell_arg, inherited, #install_sequence, #method_missing, #per_host?, #post_process, #process, subclasses, verify_api

Methods included from Sudo

#sudo?, #sudo_cmd, #sudo_stack

Methods included from Attributes

#defaults, #set_defaults

Constructor Details

#initialize(parent, port, options = {}, &block) ⇒ FreebsdPortinstall

:nodoc:



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

def initialize(parent, port, options={}, &block) #:nodoc:
  super parent, options, &block
  @port = port
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Sprinkle::Installers::Installer

Instance Attribute Details

#portObject

:nodoc:



21
22
23
# File 'lib/sprinkle/installers/freebsd_portinstall.rb', line 21

def port
  @port
end