update Gemfile.local example, use Gemfile.local if it exists when bundling

bug/bundler_fix
Brent Cook 2017-04-30 10:50:48 -05:00
parent 2ab7a42d8b
commit be608edd76
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

@ -194,7 +194,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