Browse Source

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

Brent Cook 2 years ago
parent
commit
be608edd76
2 changed files with 5 additions and 3 deletions
  1. 0
    2
      Gemfile.local.example
  2. 5
    1
      msfupdate

+ 0
- 2
Gemfile.local.example View File

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

+ 5
- 1
msfupdate View File

@@ -194,7 +194,11 @@ class Msfupdate
194 194
       require 'bundler'
195 195
     end
196 196
     Bundler.with_clean_env do
197
-      system("bundle", "install")
197
+      if File::exist? "Gemfile.local"
198
+        system("bundle", "install", "--gemfile", "Gemfile.local")
199
+      else
200
+        system("bundle", "install")
201
+      end
198 202
     end
199 203
   end
200 204
 

Loading…
Cancel
Save