Class: Node::Environment
- Inherits:
-
Object
- Object
- Node::Environment
- Defined in:
- lib/rspec-puppet/monkey_patches.rb
Overview
If Puppet::Node::Environment has a validate_dirs instance method (i.e. Puppet < 3.x), wrap the method to check if rspec-puppet is pretending to be running under windows. The original method uses Puppet::Util.absolute_path? (which in turn calls Puppet::Util::Platform.windows?) to validate the path to the manifests on disk during compilation, so we have to temporarily disable the pretending when running it.