Package DE_EPAGES::Installer::API::NodeJS
Functions for handling epages-nodejs
@EXPORT_OK |
Functions
GetNodeJSVersion
Get version as defd. in Perl/bin/nodejs.d/epages.version. Returns 0 unless exists.
Syntax |
$Version = GetNodeJSVersion($NodeDir); |
Input |
|
Return |
|
GetNodeJSZipUrl
Returns URL for epages-nodejs.zip on the download site.
Syntax |
$DownloadUrl = GetNodeJSZipUrl($Version); |
Input |
|
Return |
|
UnpackNodeJS
Updates $ENV{EPAGES_PERL}/bin/nodejs.d with package $Package.
Syntax |
UnpackNodeJS($Package, $Version, $hFlags); |
Input |
|
Return |
|
UpdateNodeJS
If $Version is set, upgrades/downgrades/installs epages-nodejs. If $Version is unset, installs epages-nodejs unless installed. Does nothing if installed and new version are same. Returns error if upgrade/downgrade/install fails.
Syntax |
$Update = UpdateNodeJS($Version, $Source); |
Example |
UpdateNodeJS('6.17.6', 'epages-nodejs.zip'); UpdateNodeJS('6.17.6'); UpdateNodeJS(); |
Input |
|
Return |
|