emerge 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/commands/upload/snapshots/snapshots.rb +6 -0
- data/lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4bfa9e9a7d920f4f41ca06eef1283b73be375bffda3d414c27b55eeb11c1cef
|
4
|
+
data.tar.gz: ed994835ee23a65f5ccfbec7acc84114f363f82f2464b4147939bb32b2664c3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de61137a2b6d33d3c6e3e8f8ab63b705658098d42c613a991f69102f01b93d3b374010939c087af06c8becfd20cb77c1f4279092ff5dc12556d803b607698a30
|
7
|
+
data.tar.gz: bde1f8a729fd46b45600e8fcc50921399e334c1bf50b071c222bac4c81050a200819baeb643fbbab91fa1ef13c9b9dc5123258416e1c88fe2fd9cd284efb58f0
|
@@ -48,6 +48,7 @@ module EmergeCLI
|
|
48
48
|
|
49
49
|
start_time = Time.now
|
50
50
|
run_id = nil
|
51
|
+
success = false
|
51
52
|
|
52
53
|
begin
|
53
54
|
api_token = @options[:api_token] || ENV['EMERGE_API_TOKEN']
|
@@ -76,12 +77,16 @@ module EmergeCLI
|
|
76
77
|
Logger.info "Time taken: #{(Time.now - start_time).round(2)} seconds"
|
77
78
|
@profiler.report
|
78
79
|
Logger.info "✅ View your snapshots at https://emergetools.com/snapshot/#{run_id}"
|
80
|
+
success = true
|
79
81
|
rescue StandardError => e
|
80
82
|
Logger.error "CLI Error: #{e.message}"
|
81
83
|
Sync { report_error(run_id, e.message, 'crash') } if run_id
|
84
|
+
raise e # Re-raise the error to dry-cli
|
82
85
|
ensure
|
83
86
|
@network&.close
|
84
87
|
end
|
88
|
+
|
89
|
+
success
|
85
90
|
end
|
86
91
|
|
87
92
|
private
|
@@ -116,6 +121,7 @@ module EmergeCLI
|
|
116
121
|
|
117
122
|
def find_image_files(client)
|
118
123
|
found_images = client.image_files
|
124
|
+
raise 'No images found. Please check your image paths or project configuration.' if found_images.empty?
|
119
125
|
Logger.info "Found #{found_images.size} images"
|
120
126
|
found_images
|
121
127
|
end
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: emerge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Emerge Tools
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async
|