ps/Modules/Alkami.DevOps.Installation/Public/Get-NewRelicYamlPath.ps1
2023-05-30 22:51:22 -07:00

25 lines
569 B
PowerShell

function Get-NewRelicYamlPath {
<#
.SYNOPSIS
Get New Relic Infrastructure yaml file location
.DESCRIPTION
Fetch a hard-coded yaml file location for the New Relic Infrastructure
.EXAMPLE
Get-NewRelicYamlPath
#>
[CmdletBinding()]
param()
$logLead = Get-LogLeadName
$newRelicYaml = "C:\Program Files\New Relic\newrelic-infra\newrelic-infra.yml"
if (!(Test-Path -Path $newRelicYaml)) {
Write-Warning "$loglead : File does not exist: $newRelicYaml"
return
}
return $newRelicYaml
}