raykit 0.0.385 → 0.0.386

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: 2628195892071cf9a584959d32d814ef059acaa7697b0a115c1ac67edd15f1a8
4
- data.tar.gz: d7e2b2dc2b8162d7003bfea9ec831d4b33240f851ba793adf905402ce4c7e48f
3
+ metadata.gz: 1da58419ce9241c1c998edff6b3ce3b442e81d178abfe1ea5c0ad3d9ba2f4025
4
+ data.tar.gz: 561c8366933b6a1ddef0b6cd9d5b81f68faf6fbaa67a9ee0ebe81e0aa84bb49d
5
5
  SHA512:
6
- metadata.gz: b67eb6e9644e13778947a60730652034b23d6e66a4c165dff803da838da33de395e8c99b2def8d652dc41a085b750ea7c0539e5036e73fa15aedfdfbfd42b64d
7
- data.tar.gz: 4a6645a6870477ff37958778beaeecefa05c29f5393612476ea8b6e2e1bb589d8b4d47e1ca1659e07b570a944632e17fa900f6e260d4c07edcd3ecf0c09a6b0e
6
+ metadata.gz: e2eea61a60852c93666a6bdacd475f62a478c2257cda7340e7bb239607737f8e01acbe4257ad680beb62a2c289a206e00fbbf95ec305d29a02af47424959d2a5
7
+ data.tar.gz: 7ff7429d6e742410ca3d5d4deb7880da26dbad640a6aa4e13df5c23340bd088c44dc6367f9e641d55fab659e5cf3e6e8e3c6ba769f889accde714b32294606a9
@@ -63,6 +63,7 @@ module Raykit
63
63
  @output, @error, process_status = Open3.capture3(@command)
64
64
  @exitstatus = process_status.exitstatus
65
65
  else
66
+ # =================================================
66
67
  #puts "@timeout is #{@timeout}"
67
68
  Open3.popen3(@command, chdir: @directory) do |_stdin, stdout, stderr, thread|
68
69
  tick = 1
@@ -92,6 +93,8 @@ module Raykit
92
93
  @exitstatus = thread.value.exitstatus
93
94
  end
94
95
  end
96
+
97
+ # =================================================
95
98
  end
96
99
  @elapsed = timer.elapsed
97
100
  if @logging_enabled
@@ -187,7 +190,7 @@ module Raykit
187
190
  symbol = Rainbow(error.encode("utf-8")).red if @exitstatus != 0
188
191
  cmd = "#{Rainbow(SECRETS.hide(@command)).yellow}"
189
192
  if show_directory
190
- puts "#{symbol} #{cmd} " + Rainbow("#{elapsed_str}").cyan #(#{@directory},#{elapsed_str})"
193
+ puts "#{symbol} #{cmd} " + Rainbow("#{elapsed_str}").cyan
191
194
  puts Rainbow(" #{@directory}").cyan
192
195
  else
193
196
  puts "#{symbol} #{Rainbow(SECRETS.hide(@command)).yellow} (#{elapsed_str})"
@@ -202,6 +205,7 @@ module Raykit
202
205
  end
203
206
 
204
207
  def details
208
+ puts "exit_code: " + @exitstatus.to_s
205
209
  if @output.length > 0
206
210
  @output.lines.each do |line|
207
211
  puts " " + line
@@ -294,8 +294,9 @@ module Raykit
294
294
  if !cmd.exitstatus.nil? && cmd.exitstatus.zero?
295
295
  else
296
296
  # display error details
297
- puts cmd.output
298
- $stderr.puts cmd.error
297
+ cmd.details
298
+ #puts cmd.output
299
+ #$stderr.puts cmd.error
299
300
  if quit_on_failure
300
301
  abort
301
302
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raykit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.385
4
+ version: 0.0.386
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-08 00:00:00.000000000 Z
11
+ date: 2022-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler