class Puppet::Parser::Functions::AutoloaderDelegate

Attributes

delegatee[R]

Public Class Methods

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

Public Instance Methods

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