Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why are some rake tasks missing?

All of the db:test:* rake tasks are missing from my rake -T listing, but I am still able to call them normally. What could cause this?

like image 934
ryeguy Avatar asked Feb 06 '11 05:02

ryeguy


2 Answers

Apparently the Rails team decided that rake -T gave too much output; many of the descriptions of the Rake tasks are commented out. See https://github.com/rails/rails/commit/29acc17 and https://github.com/rails/rails/commit/9838156 for an example (which includes some tasks from db:test:*).

like image 130
Michelle Tilley Avatar answered Oct 19 '22 07:10

Michelle Tilley


I feel that they could have made a separate switch for listing all commands as well. But until that is done, I recommend using rake -P as it will list all the available commands and their dependencies -sadly without descriptions-, which is a bit overdoing the job. If you are on Linux like OS then using grep on the list will give you a more refined list.

like image 42
Ikon Avatar answered Oct 19 '22 06:10

Ikon