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.