开发者

where can I find the rake tasks delivered with rails

开发者 https://www.devze.com 2022-12-31 22:03 出处:网络
I am looking for tasks like tmp:clear or db:migrate. Where can I find the code for these tasks. I remember seeing them before but don\'t recollect where.

I am looking for tasks like tmp:clear or db:migrate. Where can I find the code for these tasks. I remember seeing them before but don't recollect where.

Also, is there a way I can set some global variables in a .rake file that can be accessed by al开发者_JAVA技巧l tasks in that file without passing them as arguments to each task.

thanks, ash


Figure out where you installed Rails.

$ gem environment

Look for the INSTALLATION_DIRECTORY.

$ cd [INSTALLATION_DIRECTORY]/gems/rails-[VERSION]/lib/tasks

Look for the .rake files in the tasks directory.


You can check this as a starting point.

0

精彩评论

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