adding ruby gemspec support.

Signed-off-by: Toure Dunnon <toure.dunnon@anchore.com>
This commit is contained in:
Toure
2020-10-08 10:19:33 -04:00
committed by Toure Dunnon
parent 16b23e7994
commit 7a8a5419b8
7 changed files with 277 additions and 58 deletions
+10
View File
@@ -62,6 +62,16 @@ func IdentifyDistro(s scope.Scope) distro.Distro {
// Catalog the given scope, which may represent a container image or filesystem. Returns the discovered set of packages.
func CatalogFromScope(s scope.Scope) (*pkg.Catalog, error) {
log.Info("building the catalog")
// conditionally have two sets of catalogers
//var catalogers []cataloger.Cataloger
//// if image
//// use one set of catalogers
//catalogers = ...
//
//// if dir
//// use another set of catalogers
return cataloger.Catalog(s.Resolver, cataloger.All()...)
}