appydave-tools 0.64.0 → 0.65.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/appydave/tools/dam/status.rb +35 -0
- data/lib/appydave/tools/version.rb +1 -1
- data/package.json +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '018d3a90eaad36f1ac6089615800619b751ad7a398e3f29ceebb3690b8fec7e4'
|
|
4
|
+
data.tar.gz: b8b5920c74e273724d5a5750d63f9b09f4ffc637e5af21f8fded09da8cce55d2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9b61ce6b01dc9c7b865f4a0af340c49e3d537f45eb43bf61e420c4f1d7df6aead0bc210390b18bdb479a4d197a7b7d274558180ebb66070b5353e444bb33112a
|
|
7
|
+
data.tar.gz: 42e60c347dcd50fcc1714e046b228271e1363b868566f58b09cf3a0c317d65a51a47de5dce5adebe2e42a5c2281d346afc3a43a10e5c68500ba0ecd726a4d67a
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [0.64.0](https://github.com/appydave/appydave-tools/compare/v0.63.0...v0.64.0) (2025-11-22)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* add S3 SYNC column to project list showing if project has s3-staging folder ([03c8780](https://github.com/appydave/appydave-tools/commit/03c8780070df1cee3ec432cf2798c10d30bb1890))
|
|
7
|
+
|
|
1
8
|
# [0.63.0](https://github.com/appydave/appydave-tools/compare/v0.62.0...v0.63.0) (2025-11-22)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -232,6 +232,10 @@ module Appydave
|
|
|
232
232
|
|
|
233
233
|
puts " Local: #{local_count}"
|
|
234
234
|
puts " S3 staging: #{s3_count}"
|
|
235
|
+
|
|
236
|
+
# Show last S3 sync time if S3 is configured
|
|
237
|
+
show_last_s3_sync_time if s3_configured?
|
|
238
|
+
|
|
235
239
|
puts " SSD backup: #{ssd_count}"
|
|
236
240
|
|
|
237
241
|
# Project types
|
|
@@ -436,6 +440,37 @@ module Appydave
|
|
|
436
440
|
puts '💡 Suggestions:'
|
|
437
441
|
suggestions.each { |s| puts " #{s}" }
|
|
438
442
|
end
|
|
443
|
+
|
|
444
|
+
# Check if S3 is configured for this brand
|
|
445
|
+
def s3_configured?
|
|
446
|
+
s3_bucket = brand_info.aws.s3_bucket
|
|
447
|
+
s3_bucket && !s3_bucket.empty? && s3_bucket != 'NOT-SET'
|
|
448
|
+
end
|
|
449
|
+
|
|
450
|
+
# Show last S3 sync time for the brand
|
|
451
|
+
def show_last_s3_sync_time
|
|
452
|
+
# Find most recent S3 file across all projects with s3-staging
|
|
453
|
+
projects = ProjectResolver.list_projects(brand)
|
|
454
|
+
latest_sync = nil
|
|
455
|
+
|
|
456
|
+
projects.each do |project|
|
|
457
|
+
project_path = Config.project_path(brand, project)
|
|
458
|
+
staging_dir = File.join(project_path, 's3-staging')
|
|
459
|
+
next unless Dir.exist?(staging_dir)
|
|
460
|
+
|
|
461
|
+
# Get most recent file modification time in s3-staging
|
|
462
|
+
files = Dir.glob(File.join(staging_dir, '*')).select { |f| File.file?(f) }
|
|
463
|
+
next if files.empty?
|
|
464
|
+
|
|
465
|
+
project_latest = files.map { |f| File.mtime(f) }.max
|
|
466
|
+
latest_sync = project_latest if latest_sync.nil? || project_latest > latest_sync
|
|
467
|
+
end
|
|
468
|
+
|
|
469
|
+
return unless latest_sync
|
|
470
|
+
|
|
471
|
+
age = format_age(latest_sync)
|
|
472
|
+
puts " Last S3 sync: #{age} ago"
|
|
473
|
+
end
|
|
439
474
|
end
|
|
440
475
|
end
|
|
441
476
|
end
|
data/package.json
CHANGED