Rake Namespaces

  • Thread starter James Edward Gray II
  • Start date
J

James Edward Gray II

Assuming the Rakefile:

namespace :abc do
task :foo do
# ...
end
end

namespace :def do
task :bar => ??? do
# ...
end
end


Is there a way for me to reference the task abc:foo as a requirement
where the ??? is?

Thanks.

James Edward Gray II
 
M

Marcel Molina Jr.

Assuming the Rakefile:

namespace :abc do
task :foo do
# ...
end
end

namespace :def do
task :bar => ??? do
# ...
end
end


Is there a way for me to reference the task abc:foo as a requirement
where the ??? is?

Sure, just provide a fully qualified task name:

namespace :def do
task :bar => 'abc:foo' do
# ...
end
end

marcel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,234
Messages
2,571,180
Members
47,813
Latest member
RustyGary3

Latest Threads

Top