Sha256: 66a667d00d5f0fa48f599c0781594cd6810567fb02f3d8ff8c91f03ebe946a86

Contents?: true

Size: 1006 Bytes

Versions: 12

Compression:

Stored size: 1006 Bytes

Contents

module Sprinkle
  module Installers
    # The OpenBSD package installer installs OpenBSD packages.
    # 
    # == Example Usage
    #
    # Installing the magic_beans package.
    #
    #   package :magic_beans do
    #     openbsd_pkg 'magic_beans'
    #   end
    #
    # You may also specify multiple packages as an array:
    #
    #   package :magic_beans do
    #     openbsd_pkg %w(magic_beans magic_sauce)
    #   end
    #
    # == Notes
    # Before OpenBSD packages can be installed, the PKG_PATH
    # environment variable must be set.
    #
    # You must set PKG_PATH in ~/.ssh/environment on the remote
    # system and enable 'PermitUserEnvironment yes' in /etc/ssh/sshd_config
    # 
    # For help on PKG_PATH see section 15.2.2 of the OpenBSD FAQ 
    # (http://www.openbsd.org/faq/faq15.html)
    class OpenbsdPkg < PackageInstaller
      
      auto_api

      protected

        def install_commands #:nodoc:
          "pkg_add #{@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/openbsd_pkg.rb
sprinkle-0.7.1 lib/sprinkle/installers/openbsd_pkg.rb
sprinkle-0.7 lib/sprinkle/installers/openbsd_pkg.rb
sprinkle-0.6.2 lib/sprinkle/installers/openbsd_pkg.rb
sprinkle-0.6.1.1 lib/sprinkle/installers/openbsd_pkg.rb
sprinkle-0.6.1 lib/sprinkle/installers/openbsd_pkg.rb
sprinkle-0.6.0 lib/sprinkle/installers/openbsd_pkg.rb
sprinkle-0.5.2 lib/sprinkle/installers/openbsd_pkg.rb
sprinkle-0.5.1.1 lib/sprinkle/installers/openbsd_pkg.rb
sprinkle-0.5.1 lib/sprinkle/installers/openbsd_pkg.rb
sprinkle-0.5.0 lib/sprinkle/installers/openbsd_pkg.rb
sprinkle-0.5.0.rc1 lib/sprinkle/installers/openbsd_pkg.rb