Class: Puppet::Pops::Loader::LoaderPaths::ResourceTypeImplPP
- Inherits:
-
PuppetSmartPath
- Object
- SmartPath
- PuppetSmartPath
- Puppet::Pops::Loader::LoaderPaths::ResourceTypeImplPP
- Defined in:
- lib/puppet/pops/loader/loader_paths.rb
Constant Summary collapse
- RESOURCE_TYPES_PATH_PP =
File.join('.resource_types')
Constants inherited from PuppetSmartPath
Instance Attribute Summary
Attributes inherited from SmartPath
Instance Method Summary collapse
-
#effective_path(typed_name, start_index_in_name) ⇒ Object
The effect paths for resource type impl is the full name since resource types are not name spaced.
- #instantiator ⇒ Object
- #relative_path ⇒ Object
- #root_path ⇒ Object
Methods inherited from PuppetSmartPath
Methods inherited from SmartPath
Constructor Details
This class inherits a constructor from Puppet::Pops::Loader::LoaderPaths::SmartPath
Instance Method Details
#effective_path(typed_name, start_index_in_name) ⇒ Object
The effect paths for resource type impl is the full name since resource types are not name spaced. This overrides the default PuppetSmartPath.
189 190 191 192 193 |
# File 'lib/puppet/pops/loader/loader_paths.rb', line 189 def effective_path(typed_name, start_index_in_name) # Resource type to name does not skip the name-space # i.e. <module>/mymodule/resource_types/foo.pp is the reource type foo "#{File.join(generic_path, typed_name.name_parts)}.pp" end |
#instantiator ⇒ Object
181 182 183 |
# File 'lib/puppet/pops/loader/loader_paths.rb', line 181 def instantiator() Puppet::Pops::Loader::PuppetResourceTypeImplInstantiator end |
#relative_path ⇒ Object
173 174 175 |
# File 'lib/puppet/pops/loader/loader_paths.rb', line 173 def relative_path RESOURCE_TYPES_PATH_PP end |
#root_path ⇒ Object
177 178 179 |
# File 'lib/puppet/pops/loader/loader_paths.rb', line 177 def root_path @loader.path end |