class Puppet::Pops::Loader::LoaderPaths::ResourceTypeImplPP

Constants

RESOURCE_TYPES_PATH_PP

Public Instance Methods

effective_path(typed_name, start_index_in_name) click to toggle source

The effect paths for resource type impl is the full name since resource types are not name spaced. This overrides the default PuppetSmartPath.

    # File lib/puppet/pops/loader/loader_paths.rb
308 def effective_path(typed_name, start_index_in_name)
309   # Resource type to name does not skip the name-space
310   # i.e. <module>/mymodule/resource_types/foo.pp is the resource type foo
311   "#{File.join(generic_path, typed_name.name_parts)}.pp"
312 end
instantiator() click to toggle source
    # File lib/puppet/pops/loader/loader_paths.rb
300 def instantiator
301   PuppetResourceTypeImplInstantiator
302 end
relative_path() click to toggle source
    # File lib/puppet/pops/loader/loader_paths.rb
292 def relative_path
293   RESOURCE_TYPES_PATH_PP
294 end
root_path() click to toggle source
    # File lib/puppet/pops/loader/loader_paths.rb
296 def root_path
297   @loader.path
298 end