View Source Magma.Vault.Version (Magma v0.2.0)
Manages the versioning of the Magma vault.
The Magma.Vault.Version
module provides functionality to handle the
versioning of the Magma.Vault
by managing a version file within the vault.
This is crucial for ensuring compatibility between the vault and the
version of Magma being used, and for performing migrations when upgrading
to a new version of Magma.
Summary
Functions
Returns the path to the version file in the Magma vault.
Loads and returns the Magma vault version from the version file.
Saves the given version to the version file in the Magma vault.
Functions
Returns the path to the version file in the Magma vault.
Loads and returns the Magma vault version from the version file.
This function reads the version information from the .VERSION
file within
the Magma vault. If the version file exists, it parses the version string
into a Version
struct. If the file does not exist, it defaults to version
"0.1.0".
Saves the given version to the version file in the Magma vault.