ePages 6.14.0 - DE_EPAGES/FlexProvider/API/Patch.pm

Package DE_EPAGES::FlexProvider::API::Patch

Provides functions to patch virtual machine using a configuration server

@EXPORT_OK
PatchOrdered
NewPatchAvailable
NewPatchInstalled
DeliverOrderedPatch

Functions

DeliverOrderedPatch
NewPatchAvailable
NewPatchInstalled
PatchOrdered

DeliverOrderedPatch

Montor patching the $Store

Syntax
$Status = DeliverOrderedPatch($Store, $hParams)
Input
$Store (object)
Store object (references the remote database)
$hParams (ref.hash)
parameters
  • max-patch-duration - timeout if patch takes longer than X minutes
  • monitor-interval - check each X seconds the progress of the patch
  • site - name of site (default: Site)

Return
$Status (integer)
0 - success ; else - failue

NewPatchAvailable

Updates PatchVersion of $Site and NewPatch on $Store if new version available.

Syntax
($OldVersion, $NewVersion) = NewPatchAvailable($Store, $hParams);
Input
$Store (object)
Store object (references the remote database)
$hParams (ref.hash)
parameters
  • site - name of site (default: Site)
  • test - do not update PatchVersion, just check

Return
$OldVersion (string)
old PatchVersion of $Site on $Store
$NewVersion (string)
new PatchVersion of $Site on $Store

NewPatchInstalled

Updates PatchInstalledOn, NewPatch, InstallNewVersion on $Store.

Syntax
NewPatchInstalled($Store);
Input
$Store (object)
Store object (references the remote database)

PatchOrdered

Check if $Store wants to install new epages patch.

Syntax
$OK = PatchOrdered($Store);
Input
$Store (object)
Store object (references the remote database)
Return
(1 - $Store wants to install new patch ; 0 - not)
$OK