如何禁用rubygems的安装后消息? [英] How to disable post-install messages from rubygems?
本文介绍了如何禁用rubygems的安装后消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在安装了gem之后,我讨厌看到这样的愚蠢消息:
I'm tired of seeing silly messages like this, after installing gems:
Post-install message from httparty:
When you HTTParty, you must party hard!
在快速浏览 RubyGems指南时,我没有找到禁用安装后消息的选项.我希望能够在我的〜/.gemrc
中进行配置.
In a quick scan of the RubyGems Guides I found no option to disable post-install messages. I'm hoping to be able to configure this in my ~/.gemrc
.
推荐答案
要忽略所有项目中的所有安装后消息:
To ignore all post-install messages, in all projects:
bundle config --global ignore_messages true
文档:
ignore_messages(BUNDLE_IGNORE_MESSAGES):设置后,将不打印任何安装后消息.要使单个gem静音,请使用点符号,例如ignore_messages.httparty true. https://bundler.io/v1.13/man/bundle-config.1.html
这篇关于如何禁用rubygems的安装后消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文