X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fdsa-puppet.git;a=blobdiff_plain;f=3rdparty%2Fmodules%2Fstdlib%2Flib%2Fpuppet%2Fparser%2Ffunctions%2Fprivate.rb;h=11a9451f99322070bfa131a3338d9a9b6f91e029;hp=5e0b7c5600d9245c797f96a4a3305ac883ef11f4;hb=30caaa85aed7015ca0d77216bff175eebd917eb7;hpb=6f656bd4265e3dab13b9af2bf96e9044322e9d8f diff --git a/3rdparty/modules/stdlib/lib/puppet/parser/functions/private.rb b/3rdparty/modules/stdlib/lib/puppet/parser/functions/private.rb index 5e0b7c560..11a9451f9 100644 --- a/3rdparty/modules/stdlib/lib/puppet/parser/functions/private.rb +++ b/3rdparty/modules/stdlib/lib/puppet/parser/functions/private.rb @@ -3,8 +3,12 @@ # module Puppet::Parser::Functions newfunction(:private, :doc => <<-'DOC' - DEPRECATED: Sets the current class or definition as private. + @summary + **Deprecated:** Sets the current class or definition as private. Calling the class or definition from outside the current module will fail. + + @return + Sets the current class or definition as private DOC ) do |args| warning("private() DEPRECATED: This function will cease to function on Puppet 4; please use assert_private() before upgrading to puppet 4 for backwards-compatibility, or migrate to the new parser's typing system.") # rubocop:disable Metrics/LineLength : Cannot shorten this line