Displaying 1 result from an estimated 1 matches for "spider_uk_foo".
2007 May 16
0
Rake Namespaces - How to keep them separate?
Good morning,
In our app we have a number of custom Rake tasks living in lib/tasks.
Each has a different namespace, but if I do this (yes, I know, global
variables bad):
namespace :spider_uk_foo do
@ss = Scraper.new
@ss.set_name
task :perform do
end
end
Then @ss.set_name is run when running any other rake file, though each
has a different namespace.
@ss would also appear to be available to other rake files, again in
different namespaces, where it is not even defined.
Any ideas,...