puppet/modules/stdlib/spec/lib/puppet_spec/verbose.rb
2014-07-11 13:30:23 -05:00

10 lines
237 B
Ruby
Executable file

#! /usr/bin/env ruby -S rspec
# 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