1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-09-25 10:48:31 +02:00

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

This commit is contained in:
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