Sha256: 53a0fa83f4e9bf9046bfe3ec5873389dd9449f22431d3992e540390979e490d6
Contents?: true
Size: 381 Bytes
Versions: 340
Compression:
Stored size: 381 Bytes
Contents
module PuppetSpec::Scope # Initialize a new scope suitable for testing. # def create_test_scope_for_node(node_name) node = Puppet::Node.new(node_name) compiler = Puppet::Parser::Compiler.new(node) scope = Puppet::Parser::Scope.new(compiler) scope.source = Puppet::Resource::Type.new(:node, node_name) scope.parent = compiler.topscope scope end end
Version data entries
340 entries across 340 versions & 1 rubygems