opswalrus 1.0.109 → 1.0.111
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/host.rb +2 -2
- data/lib/opswalrus/local_pty_backend.rb +3 -2
- 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: 1b629fa6175a8c5ec30dcb080ee9621d8819b219a84da27a913bbf1f5443a83b
|
4
|
+
data.tar.gz: 171a9eebe51bffba40b5e0f46bcf9ac0ec1ac8a49b59303e65e9eee036eb4f85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84fc13a9fd1da13fcd2d86c1ce1570688352e20daa4e1c40c93cb625740d15b0cf383ca239445b82eadb764a23f5394732bed835441feae434ed8748bda41475
|
7
|
+
data.tar.gz: 112880cfd88527e824aca7cb6f7ae4c1ac7b6632791ffb4f3b58b46959f670b9900c9785fb52bf5b364f33cb4e40ac858b5318ee0c9b619f7430bc4a5d0c470f
|
data/Gemfile.lock
CHANGED
data/lib/opswalrus/host.rb
CHANGED
@@ -160,12 +160,12 @@ module OpsWalrus
|
|
160
160
|
}
|
161
161
|
end
|
162
162
|
|
163
|
-
def autoretry(delay: 5, timeout: 300, &block)
|
163
|
+
def autoretry(delay: 5, timeout: 300, limit: 3, &block)
|
164
164
|
attempts ||= 0
|
165
165
|
attempts += 1
|
166
166
|
block.call
|
167
167
|
rescue RetriableRemoteInvocationError => e
|
168
|
-
if attempts <=
|
168
|
+
if attempts <= limit
|
169
169
|
reconnected = reconnect(delay, timeout)
|
170
170
|
retry if reconnected
|
171
171
|
end
|
@@ -44,11 +44,11 @@ module SSHKit
|
|
44
44
|
rescue EOFError, Errno::EIO, Errno::ENOENT
|
45
45
|
# puts "eof!"
|
46
46
|
handle_data_for_stdout(output, cmd, buffer, stdin, true)
|
47
|
-
stdout.close
|
47
|
+
stdout.close unless stdout.closed?
|
48
48
|
rescue => e
|
49
49
|
App.instance.error "closing PTY due to unexpected error: #{e.message}"
|
50
50
|
handle_data_for_stdout(output, cmd, buffer, stdin, true)
|
51
|
-
stdout.close
|
51
|
+
stdout.close unless stdout.closed?
|
52
52
|
# puts e.message
|
53
53
|
# puts e.backtrace.join("\n")
|
54
54
|
end
|
@@ -65,6 +65,7 @@ module SSHKit
|
|
65
65
|
# stderr_writer.close
|
66
66
|
# output.log_command_data(cmd, :stderr, stderr_reader.read)
|
67
67
|
cmd.exit_status = status.exitstatus
|
68
|
+
ensure
|
68
69
|
output.log_command_exit(cmd)
|
69
70
|
end
|
70
71
|
# ensure
|
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.111
|
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-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|