Class: Sprinkle::Installers::BsdPort

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

Overview

OpenBSD and FreeBSD Port Installer

The Port installer installs OpenBSD and FreeBSD ports. Before usage, the ports sytem must be installed and read on the target operating system.

Example Usage

Installing the magic_beans port.

package :magic_beans do
  bsd_port '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) ⇒ BsdPort

:nodoc:



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

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:



18
19
20
# File 'lib/sprinkle/installers/bsd_port.rb', line 18

def port
  @port
end