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

Source

virtual Str dump()

Dumps the FPM environment to a string. This includes the FPM Config and a list of resolved pods.

environmentPods

Source

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

Source

const Err? error

The error, if any, encountered when resolving pods for the target environment.

findAllFiles

Source

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

Source

virtual override Str[] findAllPodNames()

Return the list of pod names for all the pods currently installed in this environment.

findFile

Source

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

Source

virtual override File? findPodFile(Str podName)

Resolve the pod file for the given pod name.

fpmConfig

Source

const FpmConfig fpmConfig

The config used for this environment.

resolvedPods

Source

const Str:PodFile resolvedPods

Dependent pods that have been resolved specifically for targetPod. Either this or unresolvedPods will be empty.

targetPod

Source

const Depend targetPod

The pod this environment is targeted to.

unresolvedPods

Source

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.