source: other-projects/hathitrust/vagrant-hadoop-cluster/trunk/modules/stdlib/lib/puppet/parser/functions/private.rb@ 30903

Last change on this file since 30903 was 30903, checked in by davidb, 8 years ago

Vagrant provisioning files for a 4-node Hadoop cluster. See README.txt for more details

File size: 690 bytes
Line 
1#
2# private.rb
3#
4
5module Puppet::Parser::Functions
6 newfunction(:private, :doc => <<-'EOS'
7 DEPRECATED: Sets the current class or definition as private.
8 Calling the class or definition from outside the current module will fail.
9 EOS
10 ) do |args|
11 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.")
12 if !Puppet::Parser::Functions.autoloader.loaded?(:assert_private)
13 Puppet::Parser::Functions.autoloader.load(:assert_private)
14 end
15 function_assert_private([(args[0] unless args.size < 1)])
16 end
17end
Note: See TracBrowser for help on using the repository browser.