puppetlabs/puppet — pull request #2472 by carlossg (2014-03-26 10:45:52+00:00)
Title: (PUP-2040) Allow excluding files from module build package

Module tarballs could have spec files, fixtures, and any temporary files created during build

Allow excluding content with puppet module build --exclude PATTERN1,PATTERN2,...
Exclude files or directories whose relative path matches the PATTERNs passed

PATTERN is interpreted as a regular expression, allowing complex
filtering of the content.