class ChefCLI::PolicyfileServices::Install

def update_lock_and_install(cookbooks_to_update, exclude_deps)

def update_lock_and_install(cookbooks_to_update, exclude_deps)
  ui.msg "Updating #{cookbooks_to_update.join(",")} cookbooks #{exclude_deps ? "(excluding dependencies)" : ""}"
  to_update = if exclude_deps
                cookbooks_to_update
              else
                policyfile_lock.solution_dependencies.transitive_deps(cookbooks_to_update)
              end
  prepare_constraints_for_update(to_update)
  prepare_constraints_for_policies
  generate_lock_and_install
end