# Rake Namespaces

**URL:** <https://www.ruby-forum.com/t/rake-namespaces/87070>\
**Category:** Ruby\
**Created:** [February 27, 2007, 11:47pm UTC](https://www.ruby-forum.com/t/rake-namespaces/87070 "2007-02-27T23:47:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bbazzarrakk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/47e85d/32.png) [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Post date:** [February 27, 2007, 11:47pm UTC](https://www.ruby-forum.com/t/rake-namespaces/87070/1 "2007-02-27T23:47:49Z")

</div>

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 G. II

---

<div class="post-metadata">

**Author:** ![bbazzarrakk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/47e85d/32.png) [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Post date:** [February 27, 2007, 11:54pm UTC](https://www.ruby-forum.com/t/rake-namespaces/87070/2 "2007-02-27T23:54:49Z")

</div>

On Wed, Feb 28, 2007 at 07:47:29AM +0900, James Edward G. II wrote:

> ```
> # ...
> 
> ```
> 
> 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

---

<div class="post-metadata">

**Author:** ![bbazzarrakk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/47e85d/32.png) [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Post date:** [February 28, 2007, 12:05am UTC](https://www.ruby-forum.com/t/rake-namespaces/87070/3 "2007-02-28T00:05:50Z")

</div>

On Feb 27, 2007, at 4:54 PM, Marcel Molina Jr. wrote:

> > task :bar =\> ??? do  
> > namespace :def do  
> > task :bar =\> ‘abc:foo’ do  
> > # …  
> > end  
> > end

Thank you.

James Edward G. II
