Scope of rakes in a rails project?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a number of parsers I run with rakes in a project I'm working on. When using a method name that already exists in another rake, and because they both use the same environment, I get a conflict. Is there a way to limit the scope of rake files within their namespace? I thought that was the whole point of the namespace? Example: namespace :test do task :test_task => :environment do ... end def test_method(argument) ... end end namespace :other_test do task :test_task => :environment do ... end def test_method(argument, argument2) ... end