Module: Kernel
- Defined in:
- lib/rspec-puppet/monkey_patches.rb
Overview
Prevent Puppet from requiring ‘puppet/util/windows’ if we’re pretending to be windows, otherwise it will require other libraries that probably won’t be available on non-windows hosts.
Instance Method Summary collapse
Instance Method Details
#old_require ⇒ Object
157 |
# File 'lib/rspec-puppet/monkey_patches.rb', line 157 alias :old_require :require |
#require(path) ⇒ Object
158 159 160 161 |
# File 'lib/rspec-puppet/monkey_patches.rb', line 158 def require(path) return if path == 'puppet/util/windows' && Puppet::Util::Platform.pretend_windows? old_require(path) end |