Sha256: ba8ae5a94c3b0c651e8f9506e30e0b64f759758a8877af1143b0f4e5eddf81e4

Contents?: true

Size: 988 Bytes

Versions: 8

Compression:

Stored size: 988 Bytes

Contents

module Sprinkle
  module Installers
    # The OpenSolaris package installer installs OpenSolaris packages.
    # 
    # == Example Usage
    #
    # Installing the magic_beans package.
    #
    #   package :magic_beans do
    #     opensolaris_pkg 'magic_beans'
    #   end
    #
    # You may also specify multiple packages as an array:
    #
    #   package :magic_beans do
    #     opensolaris_pkg 'magic_beans', 'magic_sauce'
    #   end
    #
    # == Note
    # If you are using capistrano as the deployment method
    # you will need to add the following lines to your deploy.rb
    #
    #   set :sudo, 'pfexec'
    #   set :sudo_prompt, ''
    class OpensolarisPkg < PackageInstaller
      
      ##
      # installs the OpenSolaris packages passed
      # :method: opensolaris_pkg
      # :call-seq: opensolaris_pkg(*packages)
      auto_api

      protected

        def install_commands #:nodoc:
          "pkg install #{@packages.join(' ')}"
        end

    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sprinkle-0.7.7 lib/sprinkle/installers/opensolaris_pkg.rb
sprinkle-0.7.6.2 lib/sprinkle/installers/opensolaris_pkg.rb
sprinkle-0.7.6.1 lib/sprinkle/installers/opensolaris_pkg.rb
sprinkle-0.7.6 lib/sprinkle/installers/opensolaris_pkg.rb
sprinkle-0.7.5 lib/sprinkle/installers/opensolaris_pkg.rb
sprinkle-0.7.4 lib/sprinkle/installers/opensolaris_pkg.rb
sprinkle-0.7.3 lib/sprinkle/installers/opensolaris_pkg.rb
sprinkle-0.7.2 lib/sprinkle/installers/opensolaris_pkg.rb