Sha256: 807beb3d2514a762d9a6906bceb1fed05cb22c51d2c66d5274c4b1a1e407c7c9

Contents?: true

Size: 1.05 KB

Versions: 19

Compression:

Stored size: 1.05 KB

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:
      
      api do
        def freebsd_portinstall(port, options={}, &block)
          install FreebsdPortinstall.new(self, port, options, &block)
        end
      end

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

      protected

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

    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

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