Added modules
This commit is contained in:
parent
c53c931217
commit
59ec520742
646 changed files with 35182 additions and 0 deletions
10
modules/stdlib/spec/lib/puppet_spec/verbose.rb
Executable file
10
modules/stdlib/spec/lib/puppet_spec/verbose.rb
Executable file
|
@ -0,0 +1,10 @@
|
|||
#! /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
|
Loading…
Add table
Add a link
Reference in a new issue