Sha256: 9170a912d30f9fcaeddbcc96f46ea678669a594741f9a89b41dfd8a4b5e7920d
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 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 Sprinkle::Installers::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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sprinkle-0.5.0.rc1 | lib/sprinkle/installers/mac_port.rb |