Suggest different variables to use if we want to tunnel both v4 and v6
[mirror/dsa-puppet.git] / 3rdparty / modules / stdlib / lib / puppet / parser / functions / type.rb
1 #
2 # type.rb
3 #
4 module Puppet::Parser::Functions
5   newfunction(:type, :type => :rvalue, :doc => <<-DOC
6     DEPRECATED: This function will cease to function on Puppet 4; please use type3x() before upgrading to Puppet 4 for backwards-compatibility, or migrate to the new parser's typing system.
7   DOC
8              ) do |args|
9
10     warning("type() DEPRECATED: This function will cease to function on Puppet 4; please use type3x() before upgrading to puppet 4 for backwards-compatibility, or migrate to the new parser's typing system.") # rubocop:disable Metrics/LineLength : Cannot reduce line length
11     unless Puppet::Parser::Functions.autoloader.loaded?(:type3x)
12       Puppet::Parser::Functions.autoloader.load(:type3x)
13     end
14     function_type3x(args)
15   end
16 end
17
18 # vim: set ts=2 sw=2 et :