class ChefCLI::PolicyfileCompiler

def all_possible_dep_names

constraints are not considered so this could include extra cookbooks.
cookbooks that could be considered in the dependency solution. Version
Traverses the dependency graph in a simple manner to find the set of
def all_possible_dep_names
  @all_possible_dep_names ||= cookbooks_for_demands.inject(Set.new) do |deps_set, demand_cookbook|
    deps_set_for_source = default_source.inject(Set.new) do |deps_set_for_cb, source|
      possible_deps = possible_dependencies_of(demand_cookbook, source)
      deps_set_for_cb.merge(possible_deps)
    end
    deps_set.merge(deps_set_for_source)
  end
end