Class: Sprinkle::Installers::MacPort

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

Overview

The MacPort 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 Sprinkle 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

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

:nodoc:



32
33
34
35
# File 'lib/sprinkle/installers/mac_port.rb', line 32

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:



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

def port
  @port
end