Skip to content

Commit

Permalink
Add implementation proposal for createCollectionsForTree
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomByte committed May 21, 2019
1 parent e0a91fa commit 3cb36d0
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions lib/resourceFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,12 @@ const resourceFactory = {
}
dependencyPathIndex[key] = true;

const fsReader = resourceFactory.createAdapter({fsBasePath, virBasePath, project});
const fsReader = resourceFactory.createAdapter({
fsBasePath,
virBasePath,
excludes: project.builder.excludes, // TODO: builder might be undefined
project
});
fsReaders.push(fsReader);
}
}
Expand Down Expand Up @@ -92,7 +97,10 @@ const resourceFactory = {
virBasePath = "/resources/" + tree.metadata.namespace + virBasePath;
}
sourceResourceLocators.push(resourceFactory.createAdapter({
fsBasePath, virBasePath, project: tree
fsBasePath,
virBasePath,
excludes: tree.builder.excludes, // TODO: builder might be undefined
project: tree
}));
}
}
Expand Down

0 comments on commit 3cb36d0

Please sign in to comment.