<# FPS:Containers:Make:SN-Initialize-Services-Locations:ACTIVE #>

 

<#

.DESCRIPTION

Module: Make

Core Snippet: SN-Initialize-Services-Locations

 

Initializes the calling Script, Encapsulation, etc. module Locations

 

.EXAMPLE

 

$overrideSrc = 'SN-Stub'

. (Get-ActiveFileNm -PS1 Initialize-Services-Locations)

 

.CC

 

[2024.11.06 JD] Integrated ConvertTo-DotFill for use with the Show shortcut

[2024.11.05 JD] Integrated $showBuff for use with the Show shortcut

[2024.09.29 JD] Removed hooked int testing attributes.  Use shortcut Show to retrieve values.

[2024.09.25 JD] Original code release.

 

.NOTES

 

To test the locations configured

 

Show -Services

 

 

#>

 

if ($overrideSrc -gt "") {

    $svcCallingCode = $overrideSrc

} else {

    $svcCallingCode = $PSCmdlet.MyInvocation.MyCommand.Name

}

 

# Some overrides will use the full filename, but for shortcuts we only want the shortcut name

if ($svcCallingCode -like 'SC-*') { $svcCallingCode = $svcCallingCode.replace('SC-','') }

 

$svcLoc_Logs = $global:pro_CIBase.RuntimeLogs+"\Services\$YYYY-$svcCallingCode\$MM"

$svcLoc_Logs += '\'+$DD+'-Log.txt'

 

$showBuff += (ConvertTo-DotFill $global:ShowDotLen ($svcCallingCode+' Logs: $svcLoc_Logs'))+$svcLoc_Logs+'|'

 

switch ($svcCallingCode) {

 

    # Shortcuts - Only use shortcut name

 

    # Snippets

 

    # CmdLets

 

 

    default { if ($svcPrintValue -gt "") { Write-Host "$svcCallingCode is not a configured option" } }

}