Class Puppet::FileServing::Base
In: lib/puppet/file_serving/base.rb
Parent: Object

The base class for Content and Metadata; provides common functionality like the behaviour around links.

Methods

exist?   full_path   links=   new   path=   relative_path=   stat  

Attributes

links  [R]  Determine how we deal with links.
path  [R]  Set our base path.
relative_path  [R]  Set a relative path; this is used for recursion, and sets the file‘s path relative to the initial recursion point.
source  [RW]  This is for external consumers to store the source that was used to retrieve the metadata.

Public Class methods

Public Instance methods

Does our file exist?

Return the full path to our file. Fails if there‘s no path set.

Stat our file, using the appropriate link-sensitive method.

[Validate]