class ChefCLI::PolicyfileServices::Install

def run(cookbooks_to_update = [], exclude_deps = false)

def run(cookbooks_to_update = [], exclude_deps = false)
  # TODO: suggest next step. Add a generator/init command? Specify path to Policyfile.rb?
  # See card CC-232
  if @policyfile_rel_path.end_with?(".lock.json") && !File.exist?(policyfile_lock_expanded_path)
    raise PolicyfileNotFound, "Policyfile lock not found at path #{policyfile_lock_expanded_path}"
  elsif @policyfile_rel_path.end_with?(".rb") && !File.exist?(policyfile_expanded_path)
    raise PolicyfileNotFound, "Policyfile not found at path #{policyfile_expanded_path}"
  end
  if installing_from_lock?
    install_from_lock
  elsif cookbooks_to_update.empty? || policyfile_lock.nil? # means update everything
    generate_lock_and_install
  else
    update_lock_and_install(cookbooks_to_update, exclude_deps)
  end
end