Thursday, July 12, 2012

[Rails] app-prefix for tasks defined in an engine?!

I have defined a rake task inside an engine like this: 

rake app:redmine_config:spec

namespace :my_engine do 
  
  desc "say foo"
  task :foo do
    puts "foo from the engine"
  end

end

I expected the task to be available under

rake my_engine:foo

instead I found it under: 

rake app:my_engine:foo

Does anybody have an idea where the prefix comes from? Can I change it? Can I get rid of it?

thx for any help, 
stefan


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/ZXmbOmB_368J.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate