Function: projectile-tasks-from-rake

projectile-tasks-from-rake is a byte-compiled function defined in projectile.el.

Signature

(projectile-tasks-from-rake PROJECT-ROOT)

Documentation

Return the rake tasks of the project in PROJECT-ROOT.

The tasks are read out of the project's Rakefile and .rake files rather than by running rake -T, which would load the whole application.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile-tasks-from-rake (project-root)
  "Return the rake tasks of the project in PROJECT-ROOT.
The tasks are read out of the project's Rakefile and `.rake' files
rather than by running `rake -T', which would load the whole
application."
  (when-let* ((files (projectile--rake-task-files project-root)))
    (let ((runner (if (projectile--task-file project-root "Gemfile")
                      "bundle exec rake"
                    "rake")))
      (projectile--tasks-named
       (delete-dups (mapcan #'projectile--rake-task-names files))
       "rake" (concat runner " %s")))))