Skip to content

Commit

Permalink
update Gemfile.local example, use Gemfile.local if it exists when bun…
Browse files Browse the repository at this point in the history
…dling
  • Loading branch information
busterb committed Apr 30, 2017
1 parent 2ab7a42 commit be608ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 0 additions & 2 deletions Gemfile.local.example
Expand Up @@ -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
6 changes: 5 additions & 1 deletion msfupdate
Expand Up @@ -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

Expand Down

0 comments on commit be608ed

Please sign in to comment.