vagrant/lib/vagrant/util/silence_warnings.rb

15 lines
262 B
Ruby
Raw Normal View History

module Vagrant
module Util
module SilenceWarnings
# This silences any Ruby warnings.
def self.silence!
original = $VERBOSE
$VERBOSE = nil
return yield
ensure
$VERBOSE = original
end
end
end
end