const classafFpm::FpmEnv
sys::Obj sys::Env afFpm::FpmEnv
Provides a targeted environment for a specific pod.
The WorkDirs and HomeDir are always queried if a pod is not found in a local repository.
- dump
virtual Str dump()
Dumps the FPM environment to a string. This includes the FPM Config and a list of resolved pods.
- environmentPods
const Str:PodFile environmentPods
Pods used in this environment. This is a combination of pods from directory repositories, overridden by any resolved pods.
If the target could not be resolved, then this defaults to the latest version of all known local pods.
By acknowledging pods from fanHome and workDirs, this environment works in a more expected manner whereby pods not explicitly referenced can still be discovered at runtime (e.g. icons) and index meta inspected.
- error
const Err? error
The error, if any, encountered when resolving pods for the target environment.
- findAllFiles
virtual override File[] findAllFiles(Uri uri)
Find all the files in the environment which match a relative path such as
etc/foo/config.props
.- findAllPodNames
virtual override Str[] findAllPodNames()
Return the list of pod names for all the pods currently installed in this environment.
- findFile
virtual override File? findFile(Uri uri, Bool checked := true)
Find a file in the environment using a relative path such as
etc/foo/config.props
.- findPodFile
virtual override File? findPodFile(Str podName)
Resolve the pod file for the given pod name.
- fpmConfig
const FpmConfig fpmConfig
The config used for this environment.
- resolvedPods
const Str:PodFile resolvedPods
Dependent pods that have been resolved specifically for
targetPod
. Either this orunresolvedPods
will be empty.- targetPod
const Depend targetPod
The pod this environment is targeted to.
- unresolvedPods
const Str:UnresolvedPod unresolvedPods
Dependent pods for which FPM could not reach a consensus on which version to use. Either this or
resolvedPods
will be empty.