{"id":6353,"date":"2020-01-19T19:54:00","date_gmt":"2020-01-19T11:54:00","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=6353"},"modified":"2020-01-21T16:32:30","modified_gmt":"2020-01-21T08:32:30","slug":"rake","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/rake","title":{"rendered":"rake\u547d\u4ee4 – ruby\u7a0b\u5e8f\u6784\u5efa"},"content":{"rendered":"\n

rake\u662f\u4e00\u4e2a\u7b80\u5355\u7684ruby\u6784\u5efa\u7a0b\u5e8f\uff0c\u5176\u529f\u80fd\u7c7b\u4f3c\u4e8e\u5e38\u89c4make\u547d\u4ee4\u3002<\/p>\n\n\n\n

rake\u5177\u6709\u4ee5\u4e0b\u7279\u6027\uff1a1\u3001rakefile\uff08rake\u7684makefile\u7248\u672c\uff09\u5b8c\u5168\u7528\u6807\u51c6\u7684Ruby\u8bed\u6cd5\u5b9a\u4e49\u3002\u6ca1\u6709\u8981\u7f16\u8f91\u7684XML\u6587\u4ef6\u3002\u4e0d\u7528\u62c5\u5fc3\u5947\u602a\u7684Makefile\u8bed\u6cd5\uff1b2\u3001\u7528\u6237\u53ef\u4ee5\u4f7f\u7528\u5148\u51b3\u6761\u4ef6\u6307\u5b9a\u4efb\u52a1\uff1b3\u3001rake\u652f\u6301\u89c4\u5219\u6a21\u5f0f\u6765\u5408\u6210\u9690\u5f0f\u4efb\u52a1\uff1b4\u3001\u7075\u6d3b\u7684\u6587\u4ef6\u7ba1\u7406\u5668\uff0c\u50cf\u6570\u7ec4\u4e00\u6837\uff0c\u4f46\u77e5\u9053\u64cd\u7eb5\u6587\u4ef6\u540d\u548c\u8def\u5f84\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>rake [\u53c2\u6570]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

-T<\/td>\u663e\u793a\u4efb\u52a1\uff08\u5339\u914d\u53ef\u9009\u6a21\u5f0f\uff09\u4e0e\u63cf\u8ff0\uff0c\u7136\u540e\u9000\u51fa<\/td><\/tr>
-C<\/td>\u5c06Task\u548cFileTask\u653e\u5728\u9876\u7ea7\u547d\u540d\u7a7a\u95f4\u4e2d<\/td><\/tr>
-I<\/td>\u5728\u6240\u9700\u6a21\u5757\u7684\u641c\u7d22\u8def\u5f84\u4e2d\u5305\u542bLIBDIR<\/td><\/tr>
-q<\/td>\u4e0d\u8981\u5c06\u6d88\u606f\u8bb0\u5f55\u5230\u6807\u51c6\u8f93\u51fa<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u663e\u793a\u4efb\u52a1\u4e0e\u63cf\u8ff0\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# rake -T<\/pre>\n\n\n\n

\u5728\u6240\u9700\u6a21\u5757\u7684\u641c\u7d22\u8def\u5f84\u4e2d\u5305\u542bLIBDIR\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# rake -I<\/pre>\n\n\n\n

\u4e0d\u8981\u5c06\u6d88\u606f\u8bb0\u5f55\u5230\u6807\u51c6\u8f93\u51fa\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# rake -q<\/pre>\n","protected":false},"excerpt":{"rendered":"

rake\u662f\u4e00\u4e2a\u7b80\u5355\u7684ruby\u6784\u5efa\u7a0b\u5e8f\uff0c\u5176\u529f\u80fd\u7c7b\u4f3c\u4e8e\u5e38\u89c4make\u547d\u4ee4\u3002 rake\u5177\u6709\u4ee5\u4e0b\u7279\u6027\uff1a1\u3001rakefil […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6353"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=6353"}],"version-history":[{"count":4,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6353\/revisions"}],"predecessor-version":[{"id":6464,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6353\/revisions\/6464"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=6353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=6353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=6353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}