From b8efe8147bcd37c25def7413810d5bb20a7fa298 Mon Sep 17 00:00:00 2001 From: Laurent Sansonetti Date: Thu, 12 Jul 2012 23:32:15 +0200 Subject: [PATCH] only require bundler if there is a Gemfile --- lib/motion/project.rb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/motion/project.rb b/lib/motion/project.rb index 2082da2a..4ba03773 100644 --- a/lib/motion/project.rb +++ b/lib/motion/project.rb @@ -39,10 +39,12 @@ if $?.exitstatus == 2 puts '' end -begin - require 'bundler/setup' - Bundler.require -rescue LoadError +if File.exist?('Gemfile') + begin + require 'bundler/setup' + Bundler.require + rescue LoadError + end end desc "Build the project, then run the simulator"