From 1f4d280da9238b700cb8da1964529bb9ea2dfd62 Mon Sep 17 00:00:00 2001 From: Mark Villacampa Date: Wed, 27 Aug 2014 16:39:28 +0200 Subject: [PATCH] Do not call bundler directly, and pass verbose output to targets --- lib/motion/project/target/extension_target.rb | 5 ++++- lib/motion/project/target/framework_target.rb | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/motion/project/target/extension_target.rb b/lib/motion/project/target/extension_target.rb index 9336bffb..332e855a 100644 --- a/lib/motion/project/target/extension_target.rb +++ b/lib/motion/project/target/extension_target.rb @@ -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 diff --git a/lib/motion/project/target/framework_target.rb b/lib/motion/project/target/framework_target.rb index 365553a8..c743a95f 100644 --- a/lib/motion/project/target/framework_target.rb +++ b/lib/motion/project/target/framework_target.rb @@ -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