Sha256: b1d3ab63d6dca40a91f397ddb3dfc7fee3570fa39c4aeaa23e55e4a375a7a67b

Contents?: true

Size: 742 Bytes

Versions: 16

Compression:

Stored size: 742 Bytes

Contents

#  Created by Luke A. Kanies on 2007-06-05.
#  Copyright (c) 2007. All rights reserved.

class Puppet::Provider::Package < Puppet::Provider
    # Prefetch our package list, yo.
    def self.prefetch(packages)
        instances.each do |prov|
            if pkg = packages[prov.name]
                pkg.provider = prov
            end
        end
    end

    # Clear out the cached values.
    def flush
        @property_hash.clear
    end

    # Look up the current status.
    def properties
        if @property_hash.empty?
            @property_hash = query || {:ensure => :absent}
            if @property_hash.empty?
                @property_hash[:ensure] = :absent
            end
        end
        @property_hash.dup
    end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
puppet-0.25.5 lib/puppet/provider/package.rb
puppet-0.25.4 lib/puppet/provider/package.rb
puppet-0.25.3 lib/puppet/provider/package.rb
puppet-0.24.9 lib/puppet/provider/package.rb
puppet-0.25.2 lib/puppet/provider/package.rb
puppet-0.25.1 lib/puppet/provider/package.rb
puppet-0.25.0 lib/puppet/provider/package.rb
puppet-0.24.0 lib/puppet/provider/package.rb
puppet-0.24.4 lib/puppet/provider/package.rb
puppet-0.24.1 lib/puppet/provider/package.rb
puppet-0.24.3 lib/puppet/provider/package.rb
puppet-0.24.2 lib/puppet/provider/package.rb
puppet-0.24.7 lib/puppet/provider/package.rb
puppet-0.24.6 lib/puppet/provider/package.rb
puppet-0.24.5 lib/puppet/provider/package.rb
puppet-0.24.8 lib/puppet/provider/package.rb