Sha256: 24f3e7c34097d75a43a7b9e8bf2a86e8ccf7326fdf2774e475fba35b98e414df

Contents?: true

Size: 697 Bytes

Versions: 124

Compression:

Stored size: 697 Bytes

Contents

module Puppet::Pops::Loader

# A PredefinedLoader is a loader that is manually populated with loaded elements
# before being used. It never loads anything on its own.
#
class PredefinedLoader < BaseLoader
  def find(typed_name)
    nil
  end

  def to_s()
    "(PredefinedLoader '#{loader_name}')"
  end

  # Allows shadowing since this loader is used internally for things like function local types
  # And they should win as there is otherwise a risk that the local types clash with built in types
  # that were added after the function was written, or by resource types loaded by the 3x auto loader.
  #
  def allow_shadowing?
    true
  end

  def synchronize(&block)
    yield
  end
end

end

Version data entries

124 entries across 124 versions & 1 rubygems

Version Path
puppet-7.34.0 lib/puppet/pops/loader/predefined_loader.rb
puppet-7.34.0-x86-mingw32 lib/puppet/pops/loader/predefined_loader.rb
puppet-7.34.0-x64-mingw32 lib/puppet/pops/loader/predefined_loader.rb
puppet-7.34.0-universal-darwin lib/puppet/pops/loader/predefined_loader.rb
puppet-7.33.0 lib/puppet/pops/loader/predefined_loader.rb
puppet-7.33.0-x86-mingw32 lib/puppet/pops/loader/predefined_loader.rb
puppet-7.33.0-x64-mingw32 lib/puppet/pops/loader/predefined_loader.rb
puppet-7.33.0-universal-darwin lib/puppet/pops/loader/predefined_loader.rb
puppet-7.32.1 lib/puppet/pops/loader/predefined_loader.rb
puppet-7.32.1-x86-mingw32 lib/puppet/pops/loader/predefined_loader.rb
puppet-7.32.1-x64-mingw32 lib/puppet/pops/loader/predefined_loader.rb
puppet-7.32.1-universal-darwin lib/puppet/pops/loader/predefined_loader.rb
puppet-7.31.0 lib/puppet/pops/loader/predefined_loader.rb
puppet-7.31.0-x86-mingw32 lib/puppet/pops/loader/predefined_loader.rb
puppet-7.31.0-x64-mingw32 lib/puppet/pops/loader/predefined_loader.rb
puppet-7.31.0-universal-darwin lib/puppet/pops/loader/predefined_loader.rb
puppet-7.30.0 lib/puppet/pops/loader/predefined_loader.rb
puppet-7.30.0-x86-mingw32 lib/puppet/pops/loader/predefined_loader.rb
puppet-7.30.0-x64-mingw32 lib/puppet/pops/loader/predefined_loader.rb
puppet-7.30.0-universal-darwin lib/puppet/pops/loader/predefined_loader.rb