Module: Vagrant::Util::SilenceWarnings

Defined in:
lib/vagrant/util/silence_warnings.rb

Class Method Summary collapse

Class Method Details

.silence!Object

This silences any Ruby warnings.


5
6
7
8
9
10
11
# File 'lib/vagrant/util/silence_warnings.rb', line 5

def self.silence!
  original = $VERBOSE
  $VERBOSE = nil
  return yield
ensure
  $VERBOSE = original
end