Permalink
Browse files

silence warnings etc during `platforms`

  • Loading branch information...
1 parent 7d0fcc7 commit 33ed52e703b3fa9337787344f0425063b33a2f91 @indirect indirect committed Feb 26, 2013
Showing with 5 additions and 3 deletions.
  1. +5 −3 lib/bundler/cli.rb
View
@@ -742,9 +742,11 @@ def clean
method_option "ruby", :type => :boolean, :default => false, :banner =>
"only display ruby related platform information"
def platform
- platforms = Bundler.definition.platforms.map {|p| "* #{p}" }
- ruby_version = Bundler.definition.ruby_version
- output = []
+ platforms, ruby_version = Bundler.ui.silence do
+ [ Bundler.definition.platforms.map {|p| "* #{p}" },
+ Bundler.definition.ruby_version ]
+ end
+ output = []
if options[:ruby]
if ruby_version

0 comments on commit 33ed52e

Please sign in to comment.