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