getting scope within custom provider
Hello, general idea is to get template processed from my custom provider. I've created custom type and one provider for it. When user calls that type i would like to invoke tamplate('aaaa/bbb.erb') Or i can go through path: Puppet::Parser::TemplateWrapper.new , but I'll get error as there is no scope variable defined. or even i could use: Puppet::Parser::Files.findtemplate(path, scope.compiler.environment.tos) .. like in TemplateWrapper code ... but i do not have that scope defined.
Actually it is more generic question - how to use functions, classes etc. from custom ... (more)