opswalrus 1.0.107 → 1.0.109
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/opswalrus/app.rb +5 -0
- data/lib/opswalrus/local_non_blocking_backend.rb +4 -2
- data/lib/opswalrus/local_pty_backend.rb +2 -1
- data/lib/opswalrus/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: 771554c9f1009d75cfc50dfc89f056d15dc2c2eba3cd62768a3dd0d9efcbe73b
|
4
|
+
data.tar.gz: 5a46bf2ec071c4d15651fb7b6ed774841eeb66ef81765c865c150bba0cc41a9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 901241d170ce4d0b5273fd4f8609f00c77b22dcdcb7b54c0041c9b5ca913d7b87dc6198894ba0c47a0d7c36053701ae78932250b0cc1c627ec35969b933509ab
|
7
|
+
data.tar.gz: a30d221e2fe11928562b646841777a6e3a21f04e57060d0411082f187628a09d53edfd26aba0681a981215692cac3eb7f9e1a6e2ed3a4d2b9083aa7736ed2279
|
data/Gemfile.lock
CHANGED
data/lib/opswalrus/app.rb
CHANGED
@@ -209,6 +209,11 @@ module OpsWalrus
|
|
209
209
|
json_hash = JSON.parse(params) rescue nil
|
210
210
|
json_hash = json_hash.is_a?(Hash) ? json_hash : nil
|
211
211
|
|
212
|
+
if App.instance.info?
|
213
|
+
info("runtime params:")
|
214
|
+
info(json_hash.inspect)
|
215
|
+
end
|
216
|
+
|
212
217
|
@params = json_hash # @params returns a Hash or nil
|
213
218
|
end
|
214
219
|
|
@@ -34,7 +34,8 @@ module SSHKit
|
|
34
34
|
# per https://stackoverflow.com/questions/1154846/continuously-read-from-stdout-of-external-process-in-ruby
|
35
35
|
# and https://stackoverflow.com/questions/10238298/ruby-on-linux-pty-goes-away-without-eof-raises-errnoeio
|
36
36
|
# the PTY can raise an Errno::EIO because the child process unexpectedly goes away
|
37
|
-
|
37
|
+
# Errno::ENOENT seems to be kind of like EIO
|
38
|
+
rescue EOFError, Errno::EIO, Errno::ENOENT
|
38
39
|
# puts "eof!"
|
39
40
|
handle_data_for_stdout(output, cmd, buffer, stdin, true)
|
40
41
|
stdout.close
|
@@ -68,7 +69,8 @@ module SSHKit
|
|
68
69
|
# per https://stackoverflow.com/questions/1154846/continuously-read-from-stdout-of-external-process-in-ruby
|
69
70
|
# and https://stackoverflow.com/questions/10238298/ruby-on-linux-pty-goes-away-without-eof-raises-errnoeio
|
70
71
|
# the PTY can raise an Errno::EIO because the child process unexpectedly goes away
|
71
|
-
|
72
|
+
# Errno::ENOENT seems to behave like EIO
|
73
|
+
rescue EOFError, Errno::EIO, Errno::ENOENT
|
72
74
|
# puts "eof!"
|
73
75
|
handle_data_for_stderr(output, cmd, buffer, stdin, true)
|
74
76
|
stderr.close
|
@@ -40,7 +40,8 @@ module SSHKit
|
|
40
40
|
# per https://stackoverflow.com/questions/1154846/continuously-read-from-stdout-of-external-process-in-ruby
|
41
41
|
# and https://stackoverflow.com/questions/10238298/ruby-on-linux-pty-goes-away-without-eof-raises-errnoeio
|
42
42
|
# the PTY can raise an Errno::EIO because the child process unexpectedly goes away
|
43
|
-
|
43
|
+
# Errno::ENOENT seems to behave like EIO
|
44
|
+
rescue EOFError, Errno::EIO, Errno::ENOENT
|
44
45
|
# puts "eof!"
|
45
46
|
handle_data_for_stdout(output, cmd, buffer, stdin, true)
|
46
47
|
stdout.close
|
data/lib/opswalrus/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opswalrus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.109
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Ellis
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01-
|
11
|
+
date: 2024-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|