Skip to content

Commit

Permalink
Ensure the pkg directory is always excluded
Browse files Browse the repository at this point in the history
  • Loading branch information
dhollinger committed Mar 15, 2018
1 parent 5fb0bb4 commit a51c57f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ test/tmp
test/version_tmp
tmp
vendor/
.idea/
4 changes: 3 additions & 1 deletion lib/puppet-syntax/tasks/puppet-syntax.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
module PuppetSyntax
class RakeTask < ::Rake::TaskLib
def filelist(paths)
excludes = PuppetSyntax.exclude_paths
excludes.push('pkg/**/*')
files = FileList[paths]
files.reject! { |f| File.directory?(f) }
files.exclude(*PuppetSyntax.exclude_paths)
files.exclude(*excludes)
end

def filelist_manifests
Expand Down

0 comments on commit a51c57f

Please sign in to comment.