Class: Puppet::Type

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec-puppet/monkey_patches.rb

Overview

Allow rspec-puppet to prevent Puppet::Type from automatically picking a provider for a resource. We need to do this because in order to fully resolve the graph edges, we have to convert the Puppet::Resource objects into Puppet::Type objects so that their autorequires are evaluated. We need to prevent provider code from being called during this process as it’s very platform specific.