spec/lib/puppet_spec/compiler.rb
def compile_to_catalog_unfiltered(string, node = Puppet::Node.new('test'))
    Puppet[:code] = string
    # see lib/puppet/indirector/catalog/compiler.rb#filter
    Puppet::Parser::Compiler.compile(node)
  end
# Does not removed virtual resources in compiled catalog (i.e. keeps unrealized)
Does not removed virtual resources in compiled catalog
Does not removed virtual resources in compiled catalog
def compile_to_catalog_unfiltered(string, node = Puppet::Node.new('test'))
    Puppet[:code] = string
    Puppet::Parser::Compiler.compile(node)
  end
def compile_to_catalog_unfiltered ( string , node = Puppet :: Node . new ( 'test' ) ) Puppet [ :code ] = string Puppet :: Parser :: Compiler . compile ( node ) end
Does not removed virtual resources in compiled catalog (i.e.
Does not removed virtual resources in compiled catalog ( i . e .
# see lib/puppet/indirector/catalog/compiler.rb#filter
string
node
new