Skip to content
Corex

InstalledRelease

Corex\Config\Releases\InstalledRelease · class · Config layer

The release a site is running, as far as the site can say (spec 107, plan D4). A site that has installed a release from the admin recorded its description when it did. One that has only ever been unpacked by hand has the description the package left in its root. One with neither does not know which release it is, or whose: a checkout, or a site older than descriptions. That is a thing to say, not to guess at, because which client a site is decides which packages it may be given.

The client the release was built for; null for the framework alone, and for a site that does not know. isKnown() tells the two apart.

The folders the running release said it holds. An installation moves one of these out when the next release does not hold it. None, for a release that did not say or a site that does not know: nothing is then moved but what the next release replaces.

The description itself, as the package that was installed or unpacked gave it.

Record the release an installation from the admin has just put in place.

Forget what an installation recorded: the site is again what the description in its root says.