4 module Puppet::Parser::Functions
5 newfunction(:deprecation, :doc => <<-DOC
6 Function to print deprecation warnings (this is the 3.X version of it), The uniqueness key - can appear once. The msg is the message text including any positional information that is formatted by the user/caller of the method.).
10 raise(Puppet::ParseError, "deprecation: Wrong number of arguments given (#{arguments.size} for 2)") unless arguments.size == 2
13 message = arguments[1]
15 if ENV['STDLIB_LOG_DEPRECATIONS'] == 'true'
16 warning("deprecation. #{key}. #{message}")