Sha256: 9d75a6ae6bf1066345eb9c84504f213377ada7c810d035505cfafa6953c14397

Contents?: true

Size: 884 Bytes

Versions: 4

Compression:

Stored size: 884 Bytes

Contents

module Sprinkle
  module Installers
    # = FreeBSD Portinstall Installer
    #
    # The Portinstall installer installs FreeBSD ports.
    # It uses the ports-mgmt/portupgrade port to install.
    # Before usage, the ports system must be installed and
    # read on the target operating system.
    # It is recommended to use `portsnap fetch extract` to
    # install the ports system.
    # 
    # == Example Usage
    #
    # Installing the magic_beans port.
    #
    #   package :magic_beans do
    #     freebsd_portinstall 'magic/magic_beans'
    #   end
    #
    class FreebsdPortinstall < Installer
      attr_accessor :port #:nodoc:

      def initialize(parent, port, &block) #:nodoc:
        super parent, &block
        @port = port
      end

      protected

        def install_commands #:nodoc:
          "portinstall --batch #{@port}"
        end

    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
powcloud-sprinkle-0.3.4 lib/sprinkle/installers/freebsd_portinstall.rb
powcloud-sprinkle-0.3.0 lib/sprinkle/installers/freebsd_portinstall.rb
sprinkle-0.3.1 lib/sprinkle/installers/freebsd_portinstall.rb
sprinkle-0.3.0 lib/sprinkle/installers/freebsd_portinstall.rb