diff --git a/images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1 b/images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1 index 7e6db3743..ff03ba846 100644 --- a/images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1 +++ b/images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1 @@ -103,6 +103,9 @@ $toolsList = @( (Get-NvmVersion), (Get-PackerVersion), (Get-PhantomJSVersion), + (Get-PulumiVersion), + (Get-RVersion), + (Get-SphinxVersion), (Get-SwigVersion), (Get-TerraformVersion), (Get-UnZipVersion), diff --git a/images/linux/scripts/SoftwareReport/SoftwareReport.Tools.psm1 b/images/linux/scripts/SoftwareReport/SoftwareReport.Tools.psm1 index 363b4adbf..d1984b2ac 100644 --- a/images/linux/scripts/SoftwareReport/SoftwareReport.Tools.psm1 +++ b/images/linux/scripts/SoftwareReport/SoftwareReport.Tools.psm1 @@ -255,3 +255,18 @@ function Get-ORASCliVersion { function Get-VerselCliversion { return "$(vercel --version 2>&1 | Select-Object -First 1)" } + +function Get-PulumiVersion { + $pulumiVersion = pulumi version | Take-OutputPart -Part 0 -Delimiter "v" + return "Pulumi $pulumiVersion" +} + +function Get-RVersion { + $rVersion = (Get-CommandResult "R --version | grep 'R version'").Output | Take-OutputPart -Part 2 + return "R $rVersion" +} + +function Get-SphinxVersion { + $sphinxVersion = searchd -h | Select-Object -First 1 | Take-OutputPart -Part 1 | Take-OutputPart -Part 0 -Delimiter "-" + return "Sphinx Open Source Search Server $sphinxVersion" +} \ No newline at end of file