summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Metcalfe <git@patrickmetcalfe.com>2015-03-25 22:03:29 -0500
committerPatrick Metcalfe <git@patrickmetcalfe.com>2015-03-25 22:03:29 -0500
commit79d46462961a47010142aa2606734996f4acc397 (patch)
tree867f0013ca757003feb6b839691028aed86230a1
parentce44215be8a200f19b48bcf1cb079466f3861cbb (diff)
downloadbundler-79d46462961a47010142aa2606734996f4acc397.tar.gz
switch on ignore_messages flag
-rw-r--r--lib/bundler/cli/install.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/bundler/cli/install.rb b/lib/bundler/cli/install.rb
index 4d6715120b..24445542c2 100644
--- a/lib/bundler/cli/install.rb
+++ b/lib/bundler/cli/install.rb
@@ -92,8 +92,7 @@ module Bundler
end
Installer.post_install_messages.to_a.each do |name, msg|
- Bundler.ui.confirm "Post-install message from #{name}:"
- Bundler.ui.info msg
+ print_post_install_message(name, msg) unless Bundler.settings["ignore_messages.#{name}"]
end
Installer.ambiguous_gems.to_a.each do |name, installed_from_uri, *also_found_in_uris|
@@ -152,5 +151,10 @@ module Bundler
"#{count} #{count == 1 ? 'gem' : 'gems'} now installed"
end
+ def print_post_install_message(name, msg)
+ Bundler.ui.confirm "Post-install message from #{name}:"
+ Bundler.ui.info msg
+ end
+
end
end