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 environmentPodsPods 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? errorThe 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 fpmConfigThe config used for this environment.
- resolvedPods
const Str:PodFile resolvedPodsDependent pods that have been resolved specifically for
targetPod. Either this orunresolvedPodswill be empty.- targetPod
const Depend targetPodThe pod this environment is targeted to.
- unresolvedPods
const Str:UnresolvedPod unresolvedPodsDependent pods for which FPM could not reach a consensus on which version to use. Either this or
resolvedPodswill be empty.