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

Version Path
puppet-8.3.0 spec/lib/puppet_spec/scope.rb
puppet-8.3.0-x86-mingw32 spec/lib/puppet_spec/scope.rb
puppet-8.3.0-x64-mingw32 spec/lib/puppet_spec/scope.rb
puppet-8.3.0-universal-darwin spec/lib/puppet_spec/scope.rb
puppet-8.4.0 spec/lib/puppet_spec/scope.rb
puppet-8.4.0-x86-mingw32 spec/lib/puppet_spec/scope.rb
puppet-8.4.0-x64-mingw32 spec/lib/puppet_spec/scope.rb
puppet-8.4.0-universal-darwin spec/lib/puppet_spec/scope.rb
puppet-7.28.0 spec/lib/puppet_spec/scope.rb
puppet-7.28.0-x86-mingw32 spec/lib/puppet_spec/scope.rb
puppet-7.28.0-x64-mingw32 spec/lib/puppet_spec/scope.rb
puppet-7.28.0-universal-darwin spec/lib/puppet_spec/scope.rb
puppet-8.3.1 spec/lib/puppet_spec/scope.rb
puppet-8.3.1-x86-mingw32 spec/lib/puppet_spec/scope.rb
puppet-8.3.1-x64-mingw32 spec/lib/puppet_spec/scope.rb
puppet-8.3.1-universal-darwin spec/lib/puppet_spec/scope.rb
puppet-7.27.0 spec/lib/puppet_spec/scope.rb
puppet-7.27.0-x86-mingw32 spec/lib/puppet_spec/scope.rb
puppet-7.27.0-x64-mingw32 spec/lib/puppet_spec/scope.rb
puppet-7.27.0-universal-darwin spec/lib/puppet_spec/scope.rb