From be608edd762853684a8205f790d69e52f5a7d826 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Sun, 30 Apr 2017 10:50:48 -0500 Subject: [PATCH] update Gemfile.local example, use Gemfile.local if it exists when bundling --- Gemfile.local.example | 2 -- msfupdate | 6 +++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Gemfile.local.example b/Gemfile.local.example index 1707e69605..8a698136e8 100644 --- a/Gemfile.local.example +++ b/Gemfile.local.example @@ -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 diff --git a/msfupdate b/msfupdate index 2c09886374..0c2eb789af 100755 --- a/msfupdate +++ b/msfupdate @@ -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