class Berkshelf::Resolver::Graph
def populate_local(cookbook)
-
(Hash)
-
Parameters:
-
cookbook
(Berkshelf::CachedCookbook
) --
def populate_local(cookbook) name = cookbook.cookbook_name version = cookbook.version artifact(name, version) cookbook.dependencies.each do |dependency, constraint| constraint = nil if constraint.empty? artifact(name, version).depends(dependency, constraint) end end