Update stdlib
[mirror/dsa-puppet.git] / 3rdparty / modules / stdlib / lib / puppet / parser / functions / dig.rb
1 #
2 # dig.rb
3 #
4
5 module Puppet::Parser::Functions
6   newfunction(:dig, :type => :rvalue, :doc => <<-EOS
7     DEPRECATED: This function has been replaced in Puppet 4.5.0, please use dig44() for backwards compatibility or use the new version.
8     EOS
9   ) do |arguments|
10     warning("dig() DEPRECATED: This function has been replaced in Puppet 4.5.0, please use dig44() for backwards compatibility or use the new version.")
11     if ! Puppet::Parser::Functions.autoloader.loaded?(:dig44)
12       Puppet::Parser::Functions.autoloader.load(:dig44)
13     end
14     function_dig44(arguments)
15   end
16 end