tags:

views:

116

answers:

1

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 modify 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.rb

A: 

well, this is my current solution:

task :build_someproject do
  Dir.chdir 'libs/someproject' do
    system 'rake build'
  end
end
whitered