kdeploy 1.1.4 → 1.1.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8ab3017f4d6818b4e46db9bfa55414452a87f71bc7d13dda423c34fab995262a
4
- data.tar.gz: 26b691b159c54d5d438573c539454ddd58c0d0aa6063cd18cac4469bb873d9b9
3
+ metadata.gz: 6848e8bbfd62dc5e24abe8fb8bd55bdd0c16f6ad7c89e6f187dac302ff62b526
4
+ data.tar.gz: 7219095bf70adfd8a35ed30fb66d999b74a0c165bbfad4f4ce53c6af5b5578e8
5
5
  SHA512:
6
- metadata.gz: 205246f7917997566e83cd15eacaad6d497aaf0ca6fb99de778277786abb0a71233f3782feb4f822efc7a023c0fad80f9193e9bcd970883ed2c523475d30e597
7
- data.tar.gz: f0fa8718a2646fa053c3d3bb662b773cdf6c1e9f42e6a36f137f9a74bdb97bdef060832c745cec37883e026d5c3f367ee5f6587a4b51a338be76ab3827d0e779
6
+ metadata.gz: ca824ca5a44bc0e9869246d897ae64dec8d934e8132eaf059cb82a46347638e2fb6aef4dd2e470e1e6d94e9a989927c88290439893e78ca47e9470793861cc51
7
+ data.tar.gz: 2a797d9dbc14d4cf7756309e765dc476f25b1e01b4f1d08c79db49fdc82e83c7bcb56dc4875f47913d9410600be921ee522b89ac84738cd36990194cd0af6f06
data/lib/kdeploy/cli.rb CHANGED
@@ -194,22 +194,32 @@ module Kdeploy
194
194
  case type
195
195
  when :upload
196
196
  puts pastel.green(' === Upload ===')
197
+ steps.each do |step|
198
+ key = [step[:command], type].hash
199
+ next if shown[key]
200
+
201
+ shown[key] = true
202
+ duration_str = step[:duration] ? pastel.dim(" [#{'%.2f' % step[:duration]}s]") : ''
203
+ puts pastel.green(" [upload] #{step[:command].sub('upload: ', '')}#{duration_str}")
204
+ end
197
205
  when :upload_template
198
206
  puts pastel.yellow(' === Template ===')
207
+ steps.each do |step|
208
+ key = [step[:command], type].hash
209
+ next if shown[key]
210
+
211
+ shown[key] = true
212
+ duration_str = step[:duration] ? pastel.dim(" [#{'%.2f' % step[:duration]}s]") : ''
213
+ puts pastel.yellow(" [template] #{step[:command].sub('upload_template: ', '')}#{duration_str}")
214
+ end
199
215
  when :run
200
216
  puts pastel.cyan(' === Run ===')
201
- end
202
- steps.each do |step|
203
- key = [step[:command], step[:output]].hash
204
- next if shown[key]
217
+ steps.each do |step|
218
+ key = [step[:command], type].hash
219
+ next if shown[key]
205
220
 
206
- shown[key] = true
207
- duration_str = step[:duration] ? pastel.dim(" [#{'%.2f' % step[:duration]}s]") : ''
208
- if step[:command].to_s.start_with?('upload:')
209
- puts pastel.green(" [upload] #{step[:command].sub('upload: ', '')}#{duration_str}")
210
- elsif step[:command].to_s.start_with?('upload_template:')
211
- puts pastel.yellow(" [template] #{step[:command].sub('upload_template: ', '')}#{duration_str}")
212
- else
221
+ shown[key] = true
222
+ duration_str = step[:duration] ? pastel.dim(" [#{'%.2f' % step[:duration]}s]") : ''
213
223
  puts pastel.cyan(" [run] #{step[:command].to_s.lines.first.strip}#{duration_str}")
214
224
  if step[:output].is_a?(Hash) && step[:output][:stdout]
215
225
  step[:output][:stdout].each_line do |line|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kdeploy
4
- VERSION = '1.1.4'
4
+ VERSION = '1.1.6'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kdeploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kk