Package DE_EPAGES::Installer::API::Install
API functions for installing and uninstalling cartridges.
@EXPORT_OK |
Functions
- DeleteObsoleteStoreTypeConfig
- InstallStore
- InstallStoreTypeConf
- InstallStoreTypeDir
- InstallStoreTypeDirFromBase
- RelinkStoreTypeDirs
- TestInstallStore
- TestUninstallStore
- UninstallStore
- UninstallStoreTypeDir
DeleteObsoleteStoreTypeConfig
Deletes all directories but $Version/ in $ENV{EPAGES_CONFIG}/StoreTypes.d/
Syntax |
DeleteObsoleteStoreTypeConfig($Version); |
Input |
|
InstallStore
Installs cartridges into the active database (no tests).
Syntax |
InstallStore($aPackages, $hOptions); |
Example |
InstallStore(['DE_EPAGES::WorldPay'], $hOptions); |
Input |
|
InstallStoreTypeConf
Creates $ENV{EPAGES_CONFIG}/StoreTypes.d/$Version/$StoreType.conf (extended by $MoreCartridges) from $SourceConf. $SourceConf is typically: $ENV{EPAGES_PATCHES}/patch_x_y_z_a/ExtractedDataPacks/ExtractedWebRootPacks.v /$Version/x.y.z/Config.d/base_store_type.conf
Syntax |
InstallStoreTypeConf($StoreType, $Version, $SourceConf, $MoreCartridges); |
Input |
|
InstallStoreTypeDir
Installs the store type directory for the given store type.
Syntax |
InstallStoreTypeDir($StoreType, $aPackages, $Version, $hOptions); |
Input |
|
InstallStoreTypeDirFromBase
Creates $ENV{EPAGES_WEBROOT}/StoreTypes/$Version/$StoreType (extended by $MoreCartridges) from $SourceDir. $SourceDir is typically: $ENV{EPAGES_PATCHES}/patch_x_y_z_a/ExtractedDataPacks/ExtractedWebRootPacks.v /$Version/x.y.z/base_store_type
Syntax |
InstallStoreTypeDirFromBase($StoreType, $Version, $SourceDir, $MoreCartridges); |
Input |
|
RelinkStoreTypeDirs
Deletes all directories less than $Version/ in $ENV{EPAGES_WEBROOT}/StoreTypes/ and symlinks deleted directories to $Version.
Syntax |
RelinkStoreTypeDirs($Version); |
Input |
|
TestInstallStore
Tests if the given cartridges can be installed into the active database.
Syntax |
$ahReasons = TestInstallStore($aPackages, $hOptions); |
Input |
|
Return |
|
TestUninstallStore
Tests uninstall (multiple packages) in an active store.
Syntax |
$ahReasons = TestUninstallStore($aPackages, $hOptions); |
Input |
|
Return |
|
UninstallStore
Uninstalls cartridges from the active database (no tests).
Syntax |
UninstallStore($aPackages, $hOptions); |
Input |
|
UninstallStoreTypeDir
Uninstalls the store type directory for the given store type.
Syntax |
UninstallStoreTypeDir($StoreType, $aCartridges, $Version); |
Input |
|