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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fd7bc43fdddfcd51ef2ebe7a5fe44510137974eef76b54bef580fc063adf9154
4
- data.tar.gz: 5d1dc8515182aa0eebf2db62ebb7f659099c9fc29de9ea70be874146a30d3c88
3
+ metadata.gz: f4bfa9e9a7d920f4f41ca06eef1283b73be375bffda3d414c27b55eeb11c1cef
4
+ data.tar.gz: ed994835ee23a65f5ccfbec7acc84114f363f82f2464b4147939bb32b2664c3f
5
5
  SHA512:
6
- metadata.gz: '012119f0978a9a996d33e5de12a0aef3b04a996123bbd20aa8fe9cdc0cd5e7763335ee4b3b22d94852ed768de436f50562009e185dfb195ce3bd527028eb4810'
7
- data.tar.gz: dac2c3e4324c29746d75f689ebc1e4d92f2fcda30c4c30b6cadd79367f0ee4af7c0b465e0a082e6dfdfa886bace6c791bbfec3949aa18645cbde33f881d2300f
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
@@ -1,3 +1,3 @@
1
1
  module EmergeCli
2
- VERSION = '0.2.0'.freeze
2
+ VERSION = '0.2.1'.freeze
3
3
  end
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.0
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-20 00:00:00.000000000 Z
11
+ date: 2024-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async