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

Version Path
sprinkle-0.7.7 lib/sprinkle/installers/mac_port.rb
sprinkle-0.7.6.2 lib/sprinkle/installers/mac_port.rb
sprinkle-0.7.6.1 lib/sprinkle/installers/mac_port.rb
sprinkle-0.7.6 lib/sprinkle/installers/mac_port.rb
sprinkle-0.7.5 lib/sprinkle/installers/mac_port.rb
sprinkle-0.7.4 lib/sprinkle/installers/mac_port.rb
sprinkle-0.7.3 lib/sprinkle/installers/mac_port.rb
sprinkle-0.7.2 lib/sprinkle/installers/mac_port.rb
sprinkle-0.7.1.1 lib/sprinkle/installers/mac_port.rb
sprinkle-0.7.1 lib/sprinkle/installers/mac_port.rb
sprinkle-0.7 lib/sprinkle/installers/mac_port.rb
sprinkle-0.6.2 lib/sprinkle/installers/mac_port.rb
sprinkle-0.6.1.1 lib/sprinkle/installers/mac_port.rb
sprinkle-0.6.1 lib/sprinkle/installers/mac_port.rb
sprinkle-0.6.0 lib/sprinkle/installers/mac_port.rb
sprinkle-0.5.2 lib/sprinkle/installers/mac_port.rb
sprinkle-0.5.1.1 lib/sprinkle/installers/mac_port.rb
sprinkle-0.5.1 lib/sprinkle/installers/mac_port.rb
sprinkle-0.5.0 lib/sprinkle/installers/mac_port.rb