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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 13bbe1cbd004cd214ab802af93ce3973a967cfa6b85ad81cbbf28c6df99ddf20
4
- data.tar.gz: abc576097f31bdcfa43cac6c6ee34cd5df0ee75cba2daa4aa265b4e3d7e35cc7
3
+ metadata.gz: 771554c9f1009d75cfc50dfc89f056d15dc2c2eba3cd62768a3dd0d9efcbe73b
4
+ data.tar.gz: 5a46bf2ec071c4d15651fb7b6ed774841eeb66ef81765c865c150bba0cc41a9f
5
5
  SHA512:
6
- metadata.gz: fb0a38ab7968858f0875f265e78823054771ac4864445496300db41016e5fc3a1373cb65da1543258c66ae76929685ee416b874e8eaa7d917ead47469ebeec41
7
- data.tar.gz: b6ecc0ab6de1616f108e27efb2b909e15c0f39e1737ea6452698a95da831bd2a8e15d809c705d3f8a029ac55d93db37dbb40dc45dcaeccae59b4b5cabe5d013f
6
+ metadata.gz: 901241d170ce4d0b5273fd4f8609f00c77b22dcdcb7b54c0041c9b5ca913d7b87dc6198894ba0c47a0d7c36053701ae78932250b0cc1c627ec35969b933509ab
7
+ data.tar.gz: a30d221e2fe11928562b646841777a6e3a21f04e57060d0411082f187628a09d53edfd26aba0681a981215692cac3eb7f9e1a6e2ed3a4d2b9083aa7736ed2279
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- opswalrus (1.0.107)
4
+ opswalrus (1.0.109)
5
5
  activesupport (~> 7.0)
6
6
  bcrypt_pbkdf (~> 1.1)
7
7
  binding_of_caller (~> 1.0)
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
- rescue EOFError, Errno::EIO
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
- rescue EOFError, Errno::EIO
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
- rescue EOFError, Errno::EIO
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
@@ -1,3 +1,3 @@
1
1
  module OpsWalrus
2
- VERSION = "1.0.107"
2
+ VERSION = "1.0.109"
3
3
  end
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.107
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-24 00:00:00.000000000 Z
11
+ date: 2024-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport