Module Puppet::Parser::Files
In: lib/puppet/parser/files.rb

This is a silly central module for finding different kinds of files while parsing. This code doesn‘t really belong in the Puppet::Module class, but it doesn‘t really belong anywhere else, either.

Methods

Public Instance methods

Return a list of manifests (as absolute filenames) that match pat with the current directory set to cwd. If the first component of pat does not contain any wildcards and is an existing module, return a list of manifests in that module matching the rest of pat Otherwise, try to find manifests matching pat relative to cwd

Find the concrete file denoted by file. If file is absolute, return it directly. Otherwise try to find it as a template in a module. If that fails, return it relative to the templatedir config param. In all cases, an absolute path is returned, which does not necessarily refer to an existing file

Split the path into the module and the rest of the path, or return nil if the path is empty or absolute (starts with a /). This method can return nil & anyone calling it needs to handle that.

Return an array of paths by splitting the templatedir config parameter.

[Validate]