only require bundler if there is a Gemfile

This commit is contained in:
Laurent Sansonetti
2012-07-12 23:32:15 +02:00
parent c3f24949d5
commit b8efe8147b

View File

@@ -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"