Sha256: 260e7c6ebb3262814e76848144945bcc61bcc0629f00dd281111baf4c5bc6233

Contents?: true

Size: 682 Bytes

Versions: 13

Compression:

Stored size: 682 Bytes

Contents

module PoolParty
  module Resources
=begin rdoc

== Package

The package resources defines a package that must be present on all of the
instances This will install the "name_of_package" package with the package
provider (apt, yum, etc)

== Usage

  has_package "name_of_package"
  has_package(:name => '...') do
    # More options. 
    # This block is optional
  end

== Options

* <tt>name</tt> The package name. The default provider for your OS will be picked by the dependency resolver

== Examples

  has_package(:name => 'apache2')

=end
    class Package < Resource

      def present
        :install
      end

      def absent
        :remove
      end

    end

  end
end

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
auser-poolparty-1.2.0 lib/poolparty/resources/package.rb
auser-poolparty-1.2.1 lib/poolparty/resources/package.rb
auser-poolparty-1.2.10 lib/poolparty/resources/package.rb
auser-poolparty-1.2.11 lib/poolparty/resources/package.rb
auser-poolparty-1.2.12 lib/poolparty/resources/package.rb
auser-poolparty-1.2.2 lib/poolparty/resources/package.rb
auser-poolparty-1.2.3 lib/poolparty/resources/package.rb
auser-poolparty-1.2.4 lib/poolparty/resources/package.rb
auser-poolparty-1.2.7 lib/poolparty/resources/package.rb
auser-poolparty-1.2.8 lib/poolparty/resources/package.rb
auser-poolparty-1.2.9 lib/poolparty/resources/package.rb
fairchild-poolparty-1.2.12 lib/poolparty/resources/package.rb
poolparty-1.2.2 lib/poolparty/resources/package.rb