lib/rspec-puppet/adapters.rb
# Set up all Puppet settings applicable for this Puppet version
#
# @param example_group [RSpec::Core::ExampleGroup] The RSpec context to use for local settings
# @return [void]
Set up all Puppet settings applicable for this Puppet version
Set up all Puppet settings applicable for this Puppet version
def catalog(node, exported)
        if exported
          Puppet::Parser::Compiler.compile(node).filter { |r| !r.exported? }
        else
          Puppet::Resource::Catalog.indirection.find(node.name, :use_node => node)
        end
      end
def catalog ( node , exported ) if exported Puppet :: Parser :: Compiler . compile ( node ) . filter { | r | ! r . exported? } else Puppet :: Resource :: Catalog . indirection . find ( node . name , :use_node => node ) end end
Set up all Puppet settings applicable for this Puppet version
Set up all Puppet settings applicable for this Puppet version
# Use the compiler directly to skip the filtering done by the indirector
None
void
node
<not_specific>
exported
<not_specific>
example_group
<not_specific>
The RSpec context to use for local settings
The RSpec context to use for local settings