Module: Puppet::Util::Warnings

Included in:
Provider, Provider, Resource::Type, Type, Autoload, Instrumentation::Listener, SUIDManager
Defined in:
lib/vendor/puppet/util/warnings.rb

Overview

Methods to help with handling warnings.

Class Method Summary collapse

Class Method Details

.clear_warningsObject



14
15
16
17
# File 'lib/vendor/puppet/util/warnings.rb', line 14

def clear_warnings
  @stampwarnings = {}
  nil
end

.notice_once(msg) ⇒ Object



5
6
7
# File 'lib/vendor/puppet/util/warnings.rb', line 5

def notice_once(msg)
  Puppet::Util::Warnings.maybe_log(msg, self.class) { Puppet.notice msg }
end

.warnonce(msg) ⇒ Object



10
11
12
# File 'lib/vendor/puppet/util/warnings.rb', line 10

def warnonce(msg)
  Puppet::Util::Warnings.maybe_log(msg, self.class) { Puppet.warning msg }
end