appydave-tools 0.23.0 → 0.25.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 +15 -0
- data/lib/appydave/tools/dam/s3_operations.rb +12 -1
- 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: 90aed9fb023924833992369ad5a930ab843479d562ad9fc7fc199136ef16bad6
|
|
4
|
+
data.tar.gz: 86d4f79fc5431c81a341ccd943a2c7d6a17494e3679588e96c9aa7cf83148af4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dc29a7916c07fcfff0927ee35313f5adc6e0de3eaf978fc2779ee07ddde4bd5063825caaaa7658d1bf3f0ebf50c5f6bd6a34812adc429a6b60929b26bc69cb2d
|
|
7
|
+
data.tar.gz: 99231a0e658351817fe96d0b8500d0b7f02b699d7a62c7643af2495af8d56bdd7113f7fc6d89fe6b4eb35c02581664feb6b3a8999cafb85c0099f8ce514b5a82
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
# [0.24.0](https://github.com/appydave/appydave-tools/compare/v0.23.0...v0.24.0) (2025-11-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* create project directory before S3 download - fixes WSL permission denied error when downloading to non-existent projects ([5819a65](https://github.com/appydave/appydave-tools/commit/5819a658c7aae028107c00eebe073d9a100d246a))
|
|
7
|
+
|
|
8
|
+
# [0.23.0](https://github.com/appydave/appydave-tools/compare/v0.22.0...v0.23.0) (2025-11-19)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* use current user's AWS profile for S3 operations ([3029aff](https://github.com/appydave/appydave-tools/commit/3029aff202ac8ee4a79e335ea7f3cbc246c7dd54))
|
|
14
|
+
* use current user's AWS profile for S3 operations instead of brand-specific profiles ([8eea669](https://github.com/appydave/appydave-tools/commit/8eea669b43f6017470edfcac4632c8cc4cca408d))
|
|
15
|
+
|
|
1
16
|
# [0.22.0](https://github.com/appydave/appydave-tools/compare/v0.21.2...v0.22.0) (2025-11-19)
|
|
2
17
|
|
|
3
18
|
|
|
@@ -158,6 +158,12 @@ module Appydave
|
|
|
158
158
|
project_dir = File.join(brand_path, project_id)
|
|
159
159
|
staging_dir = File.join(project_dir, 's3-staging')
|
|
160
160
|
|
|
161
|
+
# Ensure project directory exists before download
|
|
162
|
+
unless Dir.exist?(project_dir)
|
|
163
|
+
puts "📁 Creating project directory: #{project_id}"
|
|
164
|
+
FileUtils.mkdir_p(project_dir) unless dry_run
|
|
165
|
+
end
|
|
166
|
+
|
|
161
167
|
s3_files = list_s3_files
|
|
162
168
|
|
|
163
169
|
if s3_files.empty?
|
|
@@ -545,13 +551,18 @@ module Appydave
|
|
|
545
551
|
|
|
546
552
|
FileUtils.mkdir_p(File.dirname(local_file))
|
|
547
553
|
|
|
554
|
+
start_time = Time.now
|
|
555
|
+
|
|
548
556
|
s3_client.get_object(
|
|
549
557
|
bucket: brand_info.aws.s3_bucket,
|
|
550
558
|
key: s3_key,
|
|
551
559
|
response_target: local_file
|
|
552
560
|
)
|
|
553
561
|
|
|
554
|
-
|
|
562
|
+
elapsed = Time.now - start_time
|
|
563
|
+
elapsed_str = format_duration(elapsed)
|
|
564
|
+
file_size = File.size(local_file)
|
|
565
|
+
puts " ✓ Downloaded: #{File.basename(local_file)} (#{file_size_human(file_size)}) in #{elapsed_str}"
|
|
555
566
|
true
|
|
556
567
|
rescue Aws::S3::Errors::ServiceError => e
|
|
557
568
|
puts " ✗ Failed: #{File.basename(local_file)}"
|
data/package.json
CHANGED