Package DE_EPAGES::FlexProvider::API::Flex
Provides functions to configure a virtual machine using a configuration server
@EXPORT_OK |
Functions
- ConfigureVirtualMachine
- CreateVirtualMachineShop
- GetCSAccount
- GetPatchLog
- GetVirtualMachineInfo
- RunPatchOnStore
- SetShopType
- UpdateVirtualMachine
ConfigureVirtualMachine
Establish a connection to the specified virtual machine and configure the epages installation on the vm The vm is also registered on the site database server
Syntax |
$OK = ConfigureVirtualMachine($Provider, $HWParams,$hCTParams); $OK = ConfigureVirtualMachine($Provider, { VMIpAddress => '172.20.8.1', }, { VMEpagesWebServicePassword => 'qwert6' VMEpagesStoreDomainName=> 'mystore.co.uk', VMType => 'MerchantPro', }); |
Input |
|
Return |
|
CreateVirtualMachineShop
Establish webservice connection to the specified virtual machine If epages is running on the virtual machine, the cartidges are syncronized with the site database and a shop with the given params was created
Syntax |
$result = CreateVirtualMachineShop($hHWParams,$hShopParams); CreateVirtualMachineShop({ VMIpAddress => '172.20.8.1', }, { ShopType => 'Demo', Alias => 'TestShop_172.20.8.1', ShopAlias => 'TestShop', DomainName => 'mystorefrontdomain.co.uk', IsTrialShop => 1, }); |
Input |
|
Return |
|
GetCSAccount
Get account information from $Store
Syntax |
($StoreAlias, $IPAddress, $Port, $Passwd) = GetCSAccount($Store) |
Input |
|
Return |
|
GetPatchLog
Fetch content of patch logfile from store.
Syntax |
my $PatchLog = GetPatchLog($Store, $Version); |
Input |
|
Return |
|
GetVirtualMachineInfo
Fetch informations about the virtual machine using the epages configuration server Collect informations about epages running in a VM
Syntax |
$result = GetContainerInfo($hHWParams); GetVirtualMachineInfo({ VMIpAddress => 172.20.8.1 }); |
Input |
|
Return |
|
RunPatchOnStore
Executes commands in directory DE_EPAGES/Flex/bin/runPatch.d .
Syntax |
$Status = RunPatchOnStore($Store, $Version); |
Input |
|
Return |
|
SetShopType
Update the shop type of a running epages
Syntax |
$result = SetShopType($hHWParams,$ShopType); SetShopType({ VMIpAddress => 172.20.8.1 }, 'Flex_6_13_2'); |
Input |
|
Return |
|
UpdateVirtualMachine
Update an running epages in a virtual machine to the specified VMType
Syntax |
$result = UpdateVirtualMachine($hHWParams,$VMType); UpdateVirtualMachine({ VMIpAddress => 172.20.8.1 }, 'MerchantProPlus'); |
Input |
|
Return |
|
Package DE_EPAGES::FlexProvider::API::ShopConfigService
Functions
provider
Return the provider object added in the $service->new function.
Syntax |
$provider = $service->provider; |
Return |
|