Sha256: 683843ff99e245a2947765f88602df567f51e9ed95adcdee901529e3d38dd7ba

Contents?: true

Size: 623 Bytes

Versions: 12

Compression:

Stored size: 623 Bytes

Contents

module Sprinkle
  module Installers
    # The FreeBSDPkg installer installs FreeBSD packages.
    # 
    # == Example Usage
    #
    # Installing the magic_beans package.
    #
    #   package :magic_beans do
    #     freebsd_pkg 'magic_beans'
    #   end
    #
    # You may also specify multiple packages as an array:
    #
    #   package :magic_beans do
    #     freebsd_pkg %w(magic_beans magic_sauce)
    #   end
    #
    class FreebsdPkg < PackageInstaller
      
      auto_api

      protected

        def install_commands #:nodoc:
          "pkg_add -r #{@packages.join(' ')}"
        end

    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
sprinkle-0.7.1.1 lib/sprinkle/installers/freebsd_pkg.rb
sprinkle-0.7.1 lib/sprinkle/installers/freebsd_pkg.rb
sprinkle-0.7 lib/sprinkle/installers/freebsd_pkg.rb
sprinkle-0.6.2 lib/sprinkle/installers/freebsd_pkg.rb
sprinkle-0.6.1.1 lib/sprinkle/installers/freebsd_pkg.rb
sprinkle-0.6.1 lib/sprinkle/installers/freebsd_pkg.rb
sprinkle-0.6.0 lib/sprinkle/installers/freebsd_pkg.rb
sprinkle-0.5.2 lib/sprinkle/installers/freebsd_pkg.rb
sprinkle-0.5.1.1 lib/sprinkle/installers/freebsd_pkg.rb
sprinkle-0.5.1 lib/sprinkle/installers/freebsd_pkg.rb
sprinkle-0.5.0 lib/sprinkle/installers/freebsd_pkg.rb
sprinkle-0.5.0.rc1 lib/sprinkle/installers/freebsd_pkg.rb