Sha256: b191316bf19cd0f310fd9139f26f198a3c71a4901c455d2fafb70b13dfc208df

Contents?: true

Size: 381 Bytes

Versions: 335

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

335 entries across 335 versions & 1 rubygems

Version Path
puppet-6.4.0 spec/lib/puppet_spec/scope.rb
puppet-6.4.0-x86-mingw32 spec/lib/puppet_spec/scope.rb
puppet-6.4.0-x64-mingw32 spec/lib/puppet_spec/scope.rb
puppet-6.4.0-universal-darwin spec/lib/puppet_spec/scope.rb
puppet-6.0.7 spec/lib/puppet_spec/scope.rb
puppet-6.0.7-x86-mingw32 spec/lib/puppet_spec/scope.rb
puppet-6.0.7-x64-mingw32 spec/lib/puppet_spec/scope.rb
puppet-6.0.7-universal-darwin spec/lib/puppet_spec/scope.rb
puppet-5.5.12 spec/lib/puppet_spec/scope.rb
puppet-5.5.12-x86-mingw32 spec/lib/puppet_spec/scope.rb
puppet-5.5.12-x64-mingw32 spec/lib/puppet_spec/scope.rb
puppet-5.5.12-universal-darwin spec/lib/puppet_spec/scope.rb
puppet-6.3.0 spec/lib/puppet_spec/scope.rb
puppet-6.3.0-x86-mingw32 spec/lib/puppet_spec/scope.rb
puppet-6.3.0-x64-mingw32 spec/lib/puppet_spec/scope.rb
puppet-6.3.0-universal-darwin spec/lib/puppet_spec/scope.rb
puppet-6.2.0 spec/lib/puppet_spec/scope.rb
puppet-6.2.0-x86-mingw32 spec/lib/puppet_spec/scope.rb
puppet-6.2.0-x64-mingw32 spec/lib/puppet_spec/scope.rb
puppet-6.2.0-universal-darwin spec/lib/puppet_spec/scope.rb