Do not call bundler directly, and pass verbose output to targets

This commit is contained in:
Mark Villacampa
2014-08-27 16:39:28 +02:00
committed by Eloy Durán
parent af74d4294f
commit 1f4d280da9
2 changed files with 8 additions and 2 deletions

View File

@@ -52,7 +52,10 @@ module Motion; module Project
end
end
success = system("cd #{@full_path} && #{environment_variables} bundle exec rake #{command}")
args = ''
args << " --trace" if App::VERBOSE
success = system("cd #{@full_path} && #{environment_variables} rake #{command} #{args}")
unless success
App.fail "Target '#{@path}' failed to build"
end

View File

@@ -52,7 +52,10 @@ module Motion; module Project
end
end
success = system("cd #{@full_path} && #{environment_variables} bundle exec rake #{command}")
args = ''
args << " --trace" if App::VERBOSE
success = system("cd #{@full_path} && #{environment_variables} rake #{command} #{args}")
unless success
App.fail "Target '#{@path}' failed to build"
end