From 0ddffc10202fc8040edb261ae4d4f3d6de4b1af6 Mon Sep 17 00:00:00 2001 From: kellymichels Date: Mon, 3 Aug 2026 13:26:46 -0500 Subject: [PATCH] feat(zdeploy): print 'Last deployed at' timestamp as the last line of a run (#36) * feat(zdeploy): print 'Last deployed at' as the final line of a run Scroll to the bottom of a deploy and you can see how long ago it happened, without digging through the log or checking the server. Placed after Stop-ZTracking so it is genuinely the last line, below the token-tracking footer. Only reached on success - a failed deploy throws out of the dispatch loop, so this never claims a deploy that did not happen. Prints once per run rather than per project, so 'zdeploy all' ends with a single timestamp. 24-hour clock (MM/dd/yyyy HH:mm:ss): the requested format carried no AM/PM marker, and 24-hour is unambiguous for judging elapsed time at a glance. CHECKSUMS.txt regenerated, since changing a covered script invalidates it. * feat(zdeploy): use 12-hour clock with AM/PM in the timestamp Kelly's preference: 'Last deployed at 08/03/2026 01:24:09 PM' rather than 24-hour. The AM/PM marker keeps it unambiguous. CHECKSUMS.txt regenerated. --- CHECKSUMS.txt | 2 +- zdeploy.ps1 | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHECKSUMS.txt b/CHECKSUMS.txt index cc7c9cd..46de237 100644 --- a/CHECKSUMS.txt +++ b/CHECKSUMS.txt @@ -8,7 +8,7 @@ c336a61cb8563736bd6550671d7dc90b14702a43f25a97b1ac15ffd64605fbf6 zbackup_ec2.cm 20e6282901a919aa32ea717c739ba2dc9657426dff860f0e5fce201edefd99da zchecksums.cmd 692b7b0ff9e51e5d9b880358b33c54d2db4f967297a5350e154df1ce6f06ebc6 zchecksums.ps1 b56085112e7c573926a70a58872163b71416d58ce91ea7114b1f5de5fc96c982 zdeploy.cmd -8f52b2114c8d84e397b7a4f4e1f45ea7201c59fe3e1b4147fa08ad26d0325035 zdeploy.ps1 +04b58ca34e8d04a1da665c1b77d9045fff8a95dd799c5ed210710d9505beee2b zdeploy.ps1 fa817d3bd7bba98b03b411d3c5a82b210d3cca316ac0c9785afa5b4ac5fe0766 zec2.cmd 5f70432af23df3459a98d9ad6a0da723783f2269dd5f5ab8ecdd6366ebc84942 zec2.ps1 4df94eda29b6f5b2cb6bfa63e0add4d90ea24d936305f36a69988e8dd5d69154 zec2_rotatekeys.cmd diff --git a/zdeploy.ps1 b/zdeploy.ps1 index 60103ea..cb034fc 100644 --- a/zdeploy.ps1 +++ b/zdeploy.ps1 @@ -643,3 +643,9 @@ foreach ($key in $Projects) { } } Stop-ZTracking + +# Last line of the run, after the tracking footer: scroll to the bottom and you +# can see how long ago this deployed. Only reached on success - a failed deploy +# throws out of the loop above, so this never claims a deploy that didn't happen. +Write-Host "" +Write-Host ("Last deployed at {0}" -f (Get-Date -Format "MM/dd/yyyy hh:mm:ss tt")) -ForegroundColor Cyan