Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我注意到 'rake tmp:clear' 并没有清除 tmp/capybara。有没有办法让它默认执行此操作,而不是实现“另一个 rake 任务”?
结果就像在 lib/tasks 中创建一个 clear.rake 文件一样简单,其中包含
require 'rake/clean' CLEAN.include('tmp/capybara/*.html')
这是在执行时自动拾取的
rake clear