Mitchell Hashimoto
2012-Aug-15 01:00 UTC
[Puppet Users] Calling custom Puppet function from within a provider
Hello, I have a custom Puppet function. Am I able to call that function from within my custom provider (written in Ruby)? Best, Mitchell -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Nan Liu
2012-Aug-15 17:28 UTC
Re: [Puppet Users] Calling custom Puppet function from within a provider
On Tue, Aug 14, 2012 at 6:00 PM, Mitchell Hashimoto <mitchell.hashimoto@gmail.com> wrote:> I have a custom Puppet function. Am I able to call that function from within > my custom provider (written in Ruby)?I think you can do this: Puppet::Parser::Functions.autoloader.loadall After this, you can invoke any function via self.function_<your_custom_function_name> Thanks, Nan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.