Rake Namespaces

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

Sure, just provide a fully qualified task name:

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

marcel

···

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

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?

--
Marcel Molina Jr. <marcel@vernix.org>

Thank you.

James Edward Gray II

···

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

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

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