2016-02-08 16:50:35 +01:00
|
|
|
#
|
|
|
|
# dig.rb
|
|
|
|
#
|
|
|
|
|
|
|
|
module Puppet::Parser::Functions
|
|
|
|
newfunction(:dig, :type => :rvalue, :doc => <<-EOS
|
2016-07-08 06:10:22 +02:00
|
|
|
DEPRECATED: This function has been replaced in Puppet 4.5.0, please use dig44() for backwards compatibility or use the new version.
|
2016-02-08 16:50:35 +01:00
|
|
|
EOS
|
2016-07-08 06:10:22 +02:00
|
|
|
) do |arguments|
|
|
|
|
warning("dig() DEPRECATED: This function has been replaced in Puppet 4.5.0, please use dig44() for backwards compatibility or use the new version.")
|
|
|
|
if ! Puppet::Parser::Functions.autoloader.loaded?(:dig44)
|
|
|
|
Puppet::Parser::Functions.autoloader.load(:dig44)
|
2016-02-08 16:50:35 +01:00
|
|
|
end
|
2016-07-08 06:10:22 +02:00
|
|
|
function_dig44(arguments)
|
2016-02-08 16:50:35 +01:00
|
|
|
end
|
|
|
|
end
|