Skip to content

Commit

Permalink
log options preservation
Browse files Browse the repository at this point in the history
  • Loading branch information
colinsurprenant committed Apr 29, 2016
1 parent 9870d3b commit 6ab7bc9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/pluginmanager/install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ def install_gems_list!(install_list)
puts("Installing" + (install_list.empty? ? "..." : " " + install_list.collect(&:first).join(", ")))
install_list.each do |plugin, version, options|
if preserve?
plugin_gem = gemfile.find(plugin)
puts("Preserving any gem options in Gemfile for plugin #{plugin}") if plugin_gem && !plugin_gem.options.empty?
gemfile.update(plugin, version, options)
else
gemfile.overwrite(plugin, version, options)
Expand Down

0 comments on commit 6ab7bc9

Please sign in to comment.