Sha256: c8382b92489ac1d0627105a3f5cdeaf9fe20bbac32274a79792dd329740fdcc1

Contents?: true

Size: 756 Bytes

Versions: 48

Compression:

Stored size: 756 Bytes

Contents

module Sprinkle
  module Installers
    # = OpenBSD and FreeBSD Port Installer
    #
    # The Port installer installs OpenBSD and FreeBSD ports.
    # Before usage, the ports sytem must be installed and
    # read on the target operating system.
    # 
    # == Example Usage
    #
    # Installing the magic_beans port.
    #
    #   package :magic_beans do
    #     bsd_port 'magic/magic_beans'
    #   end
    #
    class BsdPort < Installer
      attr_accessor :port #:nodoc:

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

      protected

        def install_commands #:nodoc:
          "sh -c 'cd /usr/ports/#{@port} && make BATCH=yes install clean'"
        end

    end
  end
end

Version data entries

48 entries across 48 versions & 10 rubygems

Version Path
lachlan-sprinkle-0.0.6 lib/sprinkle/installers/bsd_port.rb
lachlan-sprinkle-0.0.7 lib/sprinkle/installers/bsd_port.rb
lachlan-sprinkle-0.0.8 lib/sprinkle/installers/bsd_port.rb
lachlan-sprinkle-0.0.9 lib/sprinkle/installers/bsd_port.rb
mdwan-sprinkle-0.2.2 lib/sprinkle/installers/bsd_port.rb
mdwan-sprinkle-0.2.3 lib/sprinkle/installers/bsd_port.rb
trevorturk-sprinkle-0.2.2 lib/sprinkle/installers/bsd_port.rb
trevorturk-sprinkle-0.2.6 lib/sprinkle/installers/bsd_port.rb
sprinkle-0.4.2 lib/sprinkle/installers/bsd_port.rb
sprinkle-0.4.1 lib/sprinkle/installers/bsd_port.rb
sprinkle-0.4.0 lib/sprinkle/installers/bsd_port.rb
sprinkle-0.3.6 lib/sprinkle/installers/bsd_port.rb
sprinkle-0.3.5 lib/sprinkle/installers/bsd_port.rb
dhill-sprinkle-0.3.3.1 lib/sprinkle/installers/bsd_port.rb
sprinkle-0.3.4 lib/sprinkle/installers/bsd_port.rb
sprinkle-0.3.3 lib/sprinkle/installers/bsd_port.rb
sprinkle-0.3.2 lib/sprinkle/installers/bsd_port.rb
powcloud-sprinkle-0.3.4 lib/sprinkle/installers/bsd_port.rb
powcloud-sprinkle-0.3.0 lib/sprinkle/installers/bsd_port.rb
sprinkle-0.3.1 lib/sprinkle/installers/bsd_port.rb