Class: Sprinkle::Installers::MacPort
- 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
-
#port ⇒ Object
:nodoc:.
Attributes inherited from Installer
#delivery, #options, #package, #post, #pre
Instance Method Summary collapse
-
#initialize(parent, port, options = {}, &block) ⇒ MacPort
constructor
:nodoc:.
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
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, = {}, &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::Installers::Installer
Instance Attribute Details
#port ⇒ Object
:nodoc:
30 31 32 |
# File 'lib/sprinkle/installers/mac_port.rb', line 30 def port @port end |