Function: projectile--rake-task-files
projectile--rake-task-files is a byte-compiled function defined in
projectile.el.
Signature
(projectile--rake-task-files PROJECT-ROOT)
Documentation
Return the files rake tasks may be defined in under PROJECT-ROOT.
That's the project's Rakefile plus the .rake files in the usual task
directories (see projectile--rake-task-directories). Returns nil when
the project has no Rakefile, since without one there's nothing for rake
to run - which also keeps this provider free for non-Ruby projects.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile--rake-task-files (project-root)
"Return the files rake tasks may be defined in under PROJECT-ROOT.
That's the project's Rakefile plus the `.rake' files in the usual task
directories (see `projectile--rake-task-directories'). Returns nil when
the project has no Rakefile, since without one there's nothing for rake
to run - which also keeps this provider free for non-Ruby projects."
(when-let* ((rakefile (projectile--first-task-file
project-root projectile--rakefile-names)))
(cons rakefile
(mapcan (lambda (dir)
(let ((dir (expand-file-name dir project-root)))
(when (file-directory-p dir)
(ignore-errors
(directory-files dir t "\\.rake\\'" 'nosort)))))
projectile--rake-task-directories))))