Meaning of 'generate' and 'eval_generate'

asked 2017-10-13 08:20:46 -0500

busymeister gravatar image

updated 2017-10-13 08:21:30 -0500

I'm studying the puppetlabs/concat module and am wondering about the meaning of the 'generate' and 'eval_generate' methods defined in lib/puppet/type/concat_file.rb After looking at source code of Puppet itself, it seems that these methods have special meaning in a Puppet resource but there is no documentation online about how they work. When are the methods called? How does one properly use them?

edit retag flag offensive close merge delete

Comments

Kai Burghardt gravatar imageKai Burghardt ( 2017-10-14 07:07:23 -0500 )edit

Thank you for the link but I do not believe this is relevant to my question. Instead, see: https://github.com/puppetlabs/puppet/blob/master/lib/puppet/transaction/additional_resource_generator.rb

busymeister gravatar imagebusymeister ( 2017-10-17 11:12:46 -0500 )edit