class ChefCLI::Policyfile::SolutionDependencies
def set_policyfile_deps_from_lock_data(lock_data)
def set_policyfile_deps_from_lock_data(lock_data) policyfile_deps_data = lock_data["Policyfile"] unless policyfile_deps_data.is_a?(Array) msg = "lockfile solution_dependencies Policyfile dependencies must be an array of cookbooks and constraints (got: #{policyfile_deps_data.inspect})" raise InvalidLockfile, msg end policyfile_deps_data.each do |entry| add_policyfile_dep_from_lock_data(entry) end end