Land #8324, Update Gemfile.local example, use Gemfile.local if it exists

This commit is contained in:
William Webb 2017-05-22 17:05:15 -05:00
commit 9a0e2e6c8a
No known key found for this signature in database
GPG Key ID: 341763D0308DA650
2 changed files with 5 additions and 3 deletions

View File

@ -27,8 +27,6 @@ end
# Create a custom group
group :local do
# Use pry-debugger to step through code during development
gem 'pry-debugger', '~> 0.2'
# Add the lab gem so that the 'lab' plugin will work again
gem 'lab', '~> 0.2.7'
end

View File

@ -229,7 +229,11 @@ class Msfupdate
require 'bundler'
end
Bundler.with_clean_env do
system("bundle", "install")
if File::exist? "Gemfile.local"
system("bundle", "install", "--gemfile", "Gemfile.local")
else
system("bundle", "install")
end
end
end