Normally when you type rake at command line, give you have everything installed correctly and a rake file under the same folder, the :default task is executed. But when you have namespaces to help organize the tasks, specifying the default task needs a little trick.
This is what you normally do
task :default => :build
task :build do ..... end
With namespaces, you have to use string, instead of symbol to specify the task name:
task :default => "build:build"
namespace :build do
task :build do ..... end
end
No comments:
Post a Comment