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

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, port, &block) ⇒ FreebsdPortinstall

:nodoc:



23
24
25
26
# File 'lib/sprinkle/installers/freebsd_portinstall.rb', line 23

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

Dynamic Method Handling

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

Instance Attribute Details

#portObject

:nodoc:



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

def port
  @port
end