Class: Sprinkle::Installers::BsdPort

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

Overview

The BSD Port installer installs OpenBSD and FreeBSD ports. Before usage, the ports sytem must be installed and ready 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

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

:nodoc:


24
25
26
27
# File 'lib/sprinkle/installers/bsd_port.rb', line 24

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:


16
17
18
# File 'lib/sprinkle/installers/bsd_port.rb', line 16

def port
  @port
end