rnelson0 / puppet-generate-puppetfile

Generate or update a Puppetfile for use with r10k or librarian-puppet. Optionally, create a fixtures file for rspec-puppet.
92 stars 22 forks source link

Filter comments in Puppetfile better #20

Closed rnelson0 closed 8 years ago

rnelson0 commented 8 years ago

When using the -p <file> -c arguments, comments are not filtered very well and can result in duplication.

In particular, # Modules discovered by generate-puppetfile, which is generated when using generate-puppetfile for the first time, is not filtered out of the discovered elements section. Every future run results in an additional comment added to the bottom.