开发者

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开发者_Python百科 call them normally. What could cause this?


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:*).


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜