diff options
author | Nick Lewis <nick@puppetlabs.com> | 2011-04-12 13:05:54 -0700 |
---|---|---|
committer | Nick Lewis <nick@puppetlabs.com> | 2011-04-12 13:05:54 -0700 |
commit | f6fb193078c497476326ee80827e1585ae26603c (patch) | |
tree | 6cff85468dc51786592214df846445a4cf1fee91 /lib/puppet/util/logging.rb | |
parent | d0a56522f9c574b4a6db81caf4589175c901b09e (diff) | |
download | puppet-f6fb193078c497476326ee80827e1585ae26603c.tar.gz puppet-f6fb193078c497476326ee80827e1585ae26603c.tar.xz puppet-f6fb193078c497476326ee80827e1585ae26603c.zip |
(#5027) Spell deprecation correctly
Paired-With: Jesse Wolfe
Diffstat (limited to 'lib/puppet/util/logging.rb')
-rw-r--r-- | lib/puppet/util/logging.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/puppet/util/logging.rb b/lib/puppet/util/logging.rb index b6845b8fa..36eb43cd2 100644 --- a/lib/puppet/util/logging.rb +++ b/lib/puppet/util/logging.rb @@ -15,15 +15,15 @@ module Puppet::Util::Logging end end - def deprication_warning(message) - $deprication_warnings ||= Hash.new(0) - if $deprication_warnings.length < 100 and ($deprication_warnings[message] += 1) == 1 + def deprecation_warning(message) + $deprecation_warnings ||= Hash.new(0) + if $deprecation_warnings.length < 100 and ($deprecation_warnings[message] += 1) == 1 warn message end end - def clear_deprication_warnings - $deprication_warnings.clear if $deprication_warnings + def clear_deprecation_warnings + $deprecation_warnings.clear if $deprecation_warnings end private |