puppetlabs-stdlib/spec/lib/puppet_spec/verbose.rb
2011-06-29 12:25:43 +01:00

9 lines
207 B
Ruby
Executable file

# Support code for running stuff with warnings disabled.
module Kernel
def with_verbose_disabled
verbose, $VERBOSE = $VERBOSE, nil
result = yield
$VERBOSE = verbose
return result
end
end