Class: Sprinkle::Installers::MacPort

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

Overview

Mac OS X Port Installer (macports)

The Port installer installs macports ports.

Example Usage

Installing the magic_beans port.

package :magic_beans do
  mac_port 'magic/magic_beans'
end

Notes

Before MacPorts packages can be installed, the PATH environment variable probably has to be changed so capistrano can find the /opt/local/bin/port executable

You must set PATH in ~/.ssh/environment on the remote system and enable ‘PermitUserEnvironment yes’ in /etc/sshd_config

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

:nodoc:



25
26
27
28
# File 'lib/sprinkle/installers/mac_port.rb', line 25

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:



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

def port
  @port
end