Class: Puppet::Pops::Loader::LoaderPaths::ResourceTypeImplPP
Constant Summary
collapse
- RESOURCE_TYPES_PATH_PP =
File.join('.resource_types')
PuppetSmartPath::EXTENSION
Instance Attribute Summary
Attributes inherited from SmartPath
#generic_path
Instance Method Summary
collapse
#extension
Methods inherited from SmartPath
#initialize
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.
184
185
186
187
188
|
# File 'lib/puppet/pops/loader/loader_paths.rb', line 184
def effective_path(typed_name, start_index_in_name)
"#{File.join(generic_path, typed_name.name_parts)}.pp"
end
|
#instantiator ⇒ Object
176
177
178
|
# File 'lib/puppet/pops/loader/loader_paths.rb', line 176
def instantiator()
Puppet::Pops::Loader::PuppetResourceTypeImplInstantiator
end
|
#relative_path ⇒ Object
168
169
170
|
# File 'lib/puppet/pops/loader/loader_paths.rb', line 168
def relative_path
RESOURCE_TYPES_PATH_PP
end
|
#root_path ⇒ Object
172
173
174
|
# File 'lib/puppet/pops/loader/loader_paths.rb', line 172
def root_path
@loader.path
end
|