class LittleGhost::TrustedPath
Marks a caller-supplied prompt directory as trusted application code. Construction resolves symbolic links immediately and rejects paths that are missing or are not directories.
Choosing prompt directories
ERB templates run as Ruby inside the current process. TrustedPath checks that a directory exists and resolves symbolic links; it cannot tell who may edit that directory. Create these values only from application-configured, non-user-writable roots, never from a request or model-selected path.
Attributes
The resolved, existing directory asserted as trusted by the caller.
Public Class Methods
Source
# File lib/little_ghost/prompt_resolver.rb, line 33
Resolves path to an existing directory the caller asserts is trusted prompt code. This checks existence and type, not ownership or permissions.