Call nested rake file from the root directory
How can I run rake file for a nested project from the root directory? (2 cases: from console and from the root rakefile). Assume that I cannot mo开发者_如何学Cdify the nested rakefile and that it must have 'libs/someproject' as the working directory.
Here is my project structure:
-root
--rakefile.rb --libs ---someproject ----rakefile.rbwell, this is my current solution:
task :build_someproject do
Dir.chdir 'libs/someproject' do
system 'rake build'
end
end
精彩评论