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