Sha256: ac5496e8a82fb07182ff708b63fb82d5b7491e088d64567b8271a7703d220c67
Contents?: true
Size: 882 Bytes
Versions: 19
Compression:
Stored size: 882 Bytes
Contents
module Sprinkle module Installers # The BSD Port installer installs OpenBSD and FreeBSD ports. # Before usage, the ports sytem must be installed and # ready 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: api do def bsd_port(port, options ={}, &block) install BsdPort.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: "sh -c 'cd /usr/ports/#{@port} && make BATCH=yes install clean'" end end end end
Version data entries
19 entries across 19 versions & 1 rubygems