Module: Puppet::Util::Warnings
- Included in:
- Provider, Provider, Resource::Type, Resource::TypeCollection, Type, SUIDManager
- Defined in:
- lib/puppet/util/warnings.rb
Overview
Methods to help with handling warnings.
Class Method Summary collapse
- .clear_warnings ⇒ Object
- .debug_once(msg) ⇒ Object
- .notice_once(msg) ⇒ Object
- .warnonce(msg) ⇒ Object
Class Method Details
.clear_warnings ⇒ Object
18 19 20 21 |
# File 'lib/puppet/util/warnings.rb', line 18 def clear_warnings @stampwarnings = {} nil end |
.debug_once(msg) ⇒ Object
9 10 11 12 |
# File 'lib/puppet/util/warnings.rb', line 9 def debug_once(msg) return nil unless Puppet[:debug] Puppet::Util::Warnings.maybe_log(msg, self.class) { Puppet.debug msg } end |