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-6.27.0 spec/lib/puppet_spec/scope.rb
puppet-6.27.0-x86-mingw32 spec/lib/puppet_spec/scope.rb
puppet-6.27.0-x64-mingw32 spec/lib/puppet_spec/scope.rb
puppet-6.27.0-universal-darwin spec/lib/puppet_spec/scope.rb
puppet-7.16.0 spec/lib/puppet_spec/scope.rb
puppet-7.16.0-x86-mingw32 spec/lib/puppet_spec/scope.rb
puppet-7.16.0-x64-mingw32 spec/lib/puppet_spec/scope.rb
puppet-7.16.0-universal-darwin spec/lib/puppet_spec/scope.rb
puppet-7.15.0 spec/lib/puppet_spec/scope.rb
puppet-7.15.0-x86-mingw32 spec/lib/puppet_spec/scope.rb
puppet-7.15.0-x64-mingw32 spec/lib/puppet_spec/scope.rb
puppet-7.15.0-universal-darwin spec/lib/puppet_spec/scope.rb
puppet-6.26.0 spec/lib/puppet_spec/scope.rb
puppet-6.26.0-x86-mingw32 spec/lib/puppet_spec/scope.rb
puppet-6.26.0-x64-mingw32 spec/lib/puppet_spec/scope.rb
puppet-6.26.0-universal-darwin spec/lib/puppet_spec/scope.rb
puppet-7.14.0 spec/lib/puppet_spec/scope.rb
puppet-7.14.0-x86-mingw32 spec/lib/puppet_spec/scope.rb
puppet-7.14.0-x64-mingw32 spec/lib/puppet_spec/scope.rb
puppet-7.14.0-universal-darwin spec/lib/puppet_spec/scope.rb