Sha256: 2fc7a3117e8ca93f4f91386d4eee27744c0535b1a15c048ba835d6e818718dfe
Contents?: true
Size: 1.05 KB
Versions: 19
Compression:
Stored size: 1.05 KB
Contents
module Sprinkle module Installers # 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 # class MacPort < Installer api do def mac_port(port, options={}, &block) install MacPort.new(self, port, options, &block) end end attr_accessor :port #:nodoc: def initialize(parent, port, options = {}, &block) #:nodoc: super parent, options, &block @port = port end protected def install_commands #:nodoc: "port install #{@port}" end end end end
Version data entries
19 entries across 19 versions & 1 rubygems