class ChefCLI::PolicyfileServices::CleanPolicyCookbooks
def cookbook_revisions_in_policy(name, revision_id)
- Api: - private
def cookbook_revisions_in_policy(name, revision_id) policy_revision_data = http_client.get("/policies/#{name}/revisions/#{revision_id}") policy_revision_data["cookbook_locks"].inject({}) do |cb_map, (cb_name, lock_info)| cb_map[cb_name] = lock_info["identifier"] cb_map end end