Sha256: 9664d88d6c21dd1d3ba86a66d33050b0010a5869ac18d50b34c27dbcb211f486

Contents?: true

Size: 885 Bytes

Versions: 9

Compression:

Stored size: 885 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

9 entries across 9 versions & 2 rubygems

Version Path
sprinkle-0.4.2 lib/sprinkle/installers/freebsd_portinstall.rb
sprinkle-0.4.1 lib/sprinkle/installers/freebsd_portinstall.rb
sprinkle-0.4.0 lib/sprinkle/installers/freebsd_portinstall.rb
sprinkle-0.3.6 lib/sprinkle/installers/freebsd_portinstall.rb
sprinkle-0.3.5 lib/sprinkle/installers/freebsd_portinstall.rb
dhill-sprinkle-0.3.3.1 lib/sprinkle/installers/freebsd_portinstall.rb
sprinkle-0.3.4 lib/sprinkle/installers/freebsd_portinstall.rb
sprinkle-0.3.3 lib/sprinkle/installers/freebsd_portinstall.rb
sprinkle-0.3.2 lib/sprinkle/installers/freebsd_portinstall.rb