class Puppet::Parser::Functions::AutoloaderDelegate

Attributes

delegatee[R]

Public Class Methods

new() click to toggle source
   # File lib/puppet/parser/functions.rb
37 def initialize
38   @delegatee = Puppet::Util::Autoload.new(self, "puppet/parser/functions")
39 end

Public Instance Methods

load(name, env = Puppet.lookup(:current_environment)) click to toggle source
   # File lib/puppet/parser/functions.rb
49 def load(name, env = Puppet.lookup(:current_environment))
50   if Puppet[:strict] != :off
51     Puppet.warn_once('deprecations', "Puppet::Parser::Functions#load('#{name}')", _("The method 'Puppet::Parser::Functions.autoloader#load(\"%{name}\")' is deprecated in favor of using 'Scope#call_function'.") % {name: name})
52   end
53 
54   @delegatee.load(name, env)
55 end
loadall(env = Puppet.lookup(:current_environment)) click to toggle source
   # File lib/puppet/parser/functions.rb
41 def loadall(env = Puppet.lookup(:current_environment))
42   if Puppet[:strict] != :off
43     Puppet.warn_once('deprecations', 'Puppet::Parser::Functions#loadall', _("The method 'Puppet::Parser::Functions.autoloader#loadall' is deprecated in favor of using 'Scope#call_function'."))
44   end
45 
46   @delegatee.loadall(env)
47 end
loaded?(name) click to toggle source
   # File lib/puppet/parser/functions.rb
57 def loaded?(name)
58   if Puppet[:strict] != :off
59     Puppet.warn_once('deprecations', "Puppet::Parser::Functions.loaded?('#{name}')", _("The method 'Puppet::Parser::Functions.autoloader#loaded?(\"%{name}\")' is deprecated in favor of using 'Scope#call_function'.") % {name: name})
60   end
61 
62   @delegatee.loaded?(name)
63 end