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 +4 -4
- data/lib/kdeploy/cli.rb +21 -11
- data/lib/kdeploy/version.rb +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: 6848e8bbfd62dc5e24abe8fb8bd55bdd0c16f6ad7c89e6f187dac302ff62b526
|
4
|
+
data.tar.gz: 7219095bf70adfd8a35ed30fb66d999b74a0c165bbfad4f4ce53c6af5b5578e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
202
|
-
|
203
|
-
|
204
|
-
next if shown[key]
|
217
|
+
steps.each do |step|
|
218
|
+
key = [step[:command], type].hash
|
219
|
+
next if shown[key]
|
205
220
|
|
206
|
-
|
207
|
-
|
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|
|
data/lib/kdeploy/version.rb
CHANGED