Sha256: 7d014d2117dbd711b163ba203d727591a614948265ed8e80aeea977901b4f4d9

Contents?: true

Size: 850 Bytes

Versions: 12

Compression:

Stored size: 850 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 %w(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
      
      auto_api

      protected

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