25 lines
569 B
PowerShell
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
|
||
|
|
||
|
}
|