Sha256: b212606bbba31ae1ea3448da5c2c789f2d8b35ee2902a5c903a065ae91719ad7

Contents?: true

Size: 344 Bytes

Versions: 5

Compression:

Stored size: 344 Bytes

Contents

# Methods to help with handling warnings.
module Puppet::Util::Warnings
    module_function

    def warnonce(msg)
        $stampwarnings ||= {}
        $stampwarnings[self.class] ||= []
        unless $stampwarnings[self.class].include? msg
            Puppet.warning msg
            $stampwarnings[self.class] << msg
        end
    end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
puppet-0.24.0 lib/puppet/util/warnings.rb
puppet-0.24.2 lib/puppet/util/warnings.rb
puppet-0.24.3 lib/puppet/util/warnings.rb
puppet-0.24.1 lib/puppet/util/warnings.rb
puppet-0.24.4 lib/puppet/util/warnings.rb