This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Describe 'Module Structure and Syntax' { | |
BeforeAll { | |
$modulePath = Get-Item -Path $PSScriptRoot\..\src | |
$moduleName = (Get-Item -Path "$modulePath\*.psd1").BaseName | |
$moduleManifest = Join-Path -Path $modulePath -ChildPath "$moduleName.psd1" | |
$manifest = Test-ModuleManifest -Path $moduleManifest -ErrorAction Stop -WarningAction SilentlyContinue | |
} | |
Context 'Module Manifest' { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Describe 'Module Structure and Syntax' { | |
BeforeDiscovery { | |
$modulePath = Get-Item -Path $PSScriptRoot\..\src | |
$functionsPublicPath = Join-Path -Path $modulePath -ChildPath 'Functions\Public' | |
$functionsPrivatePath = Join-Path -Path $modulePath -ChildPath 'Functions\Private' | |
$functionsPublic = Get-ChildItem -Path $functionsPublicPath -Filter *.ps1 | |
if (Test-Path $functionsPrivatePath) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$psm1 = Get-Item -Path "./*.psm1" | |
# Parse the content to produce the AST | |
$ast = [System.Management.Automation.Language.Parser]::ParseFile($psm1, [ref]$null, [ref]$null) | |
# Find all function definitions | |
$functions = $ast.FindAll({ | |
param($node) | |
$node -is [System.Management.Automation.Language.FunctionDefinitionAst] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"basics": { | |
"name": "Rob Pleau", | |
"label": "DevOps / Cloud / Platform Engineer", | |
"image": "https://avatars.githubusercontent.com/u/14333618?v=4", | |
"email": "rj.pleau@gmail.com", | |
"phone": "(508) 498-2648", | |
"url": "https://ephos.github.io", | |
"summary": "Security oriented DevOps/DevSecOps, Cloud, and Platform Engineer with over 10 years of experience. Driven by a desire to continually optimize processes, learn, and share knowledge. Experienced in designing, implementing, and managing complex cloud and container infrastructure and associated CI/CD pipelines. Experienced writer of code, skillful in scripting and building CLI tools as well as writing Infrastructure as Code (IaC).", | |
"location": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trigger: | |
paths: | |
exclude: | |
- azure-pipelines.yml | |
- .gitignore | |
- LICENSE | |
- ReadMe.md | |
- images/* | |
branches: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"console_title_template": "\uf007 {{.UserName}} | \uea7a {{.HostName}} | \uf489 {{.Shell}} | \ueaf7 {{.PWD}} | \ueb58 {{.Code}}", | |
"version": 2, | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"segments": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Describe -Name 'Module Structure' { | |
BeforeAll { | |
# Test setup - Pester v5 Setup Syntax | |
$moduleRoot = (Get-Item -Path $PSCommandPath).Directory.Parent.FullName | |
$modulePath = Join-Path -Path $moduleRoot -ChildPath \src\ | |
$moduleName = (Get-Item -Path "$modulePath\*.psd1").BaseName | |
$moduleManifest = Join-Path -Path $modulePath -ChildPath "$moduleName.psd1" | |
$manifest = Test-ModuleManifest -Path $moduleManifest -ErrorAction Stop -WarningAction SilentlyContinue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Test-ComputerSecureChannelPSSession | |
{ | |
[CmdletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'Low')] | |
param | |
( | |
[Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, Position = 0)] | |
[ValidateNotNullOrEmpty()] | |
[string]$ComputerName, | |
[Parameter(Mandatory = $false, Position = 1)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-ChildItem C:\Users\ephos\Videos\ -Filter *.mp4 | Sort-Object -Property Name | Select-Object -Property @{N='Custom';E={"file '$($_.FullName)'"}} | Select-Object -ExpandProperty Custom | Out-File -FilePath C:\Users\ephos\Videos\list.txt -Force | |
C:\Users\ephos\Desktop\ffmpeg-4.0-win64-static\bin\ffmpeg.exe -f concat -safe 0 -i 'list.txt' -c copy output.mp4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2017-12-04T15:51:10.337-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.0.1_x4.exe: 2017/12/04 15:51:10 [DEBUG] Looking for VM or template by name/path "Server2012_R2_Template" | |
2017-12-04T15:51:10.348-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.0.1_x4.exe: 2017/12/04 15:51:10 [DEBUG] Datacenter for VM/template search: /MyDatacenter | |
2017-12-04T15:51:10.749-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.0.1_x4.exe: 2017/12/04 15:51:10 [DEBUG] Fetching properties for VM "/MyDatacenter/Server2012_R2_Template" | |
2017-12-04T15:51:10.760-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.0.1_x4.exe: 2017/12/04 15:51:10 [DEBUG] ReadSCSIBusState: SCSI controller layout for first 1 controllers: lsilogic-sas-1000 | |
2017-12-04T15:51:10.760-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.0.1_x4.exe: 2017/12/04 15:51:10 [DEBUG] ReadDiskSizes: Fetching disk sizes for disks across 1 SCSI controllers | |
2017-12-04T15:51:10.760-0500 [DEBUG] plugin.terraform-provider-vsphere_v1.0.1_x4.exe: 2017/12/04 15:51:10 [DEBUG] DiskR |
NewerOlder