class ChefCLI::Policyfile::SolutionDependencies

def set_cookbook_deps_from_lock_data(lock_data)

def set_cookbook_deps_from_lock_data(lock_data)
  cookbook_dependencies_data = lock_data["dependencies"]
  unless cookbook_dependencies_data.is_a?(Hash)
    msg = "lockfile solution_dependencies dependencies entry must be a Hash (JSON object) of dependencies (got: #{cookbook_dependencies_data.inspect})"
    raise InvalidLockfile, msg
  end
  cookbook_dependencies_data.each do |name_and_version, deps_list|
    add_cookbook_dep_from_lock_data(name_and_version, deps_list)
  end
end