opswalrus 1.0.99 → 1.0.100
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 +1 -1
- data/lib/opswalrus/ops_file_script_dsl.rb +6 -4
- data/lib/opswalrus/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: a03d48413be839240754e534eb147da0c5fee292c458b48233c903de045fef44
|
4
|
+
data.tar.gz: fae4f4c68fbf572b8f9f6b2ed226bb170ca14ae7f0ef652c65f16765fb67b043
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11dd483152012c48dc536e5d55e16a3463a1bd8fb23b8f20e4742b424e5f5df77e5bff2289758160e14a7fab2bbd40e54bef745d1010b786459658ea95588867
|
7
|
+
data.tar.gz: b93e47275fe2319876ffa496b400d3c8e57efc2f93d6f6a981408a0c5d0dd92f31afdb21c13732ed2c2256f58eda0c14e3c5d2822cbd2970b2d351c18bc07f15
|
data/Gemfile.lock
CHANGED
data/lib/opswalrus/host.rb
CHANGED
@@ -182,7 +182,7 @@ module OpsWalrus
|
|
182
182
|
end
|
183
183
|
|
184
184
|
# returns an integer number of seconds if reconnected; nil otherwise
|
185
|
-
def reconnect(delay
|
185
|
+
def reconnect(delay = 1, timeout = 300)
|
186
186
|
delay = 1 if delay < 1
|
187
187
|
|
188
188
|
desc "Waiting for #{to_s} (alias=#{self.alias}) to become available. Reconnecting."
|
@@ -229,13 +229,15 @@ module OpsWalrus
|
|
229
229
|
rebooting = sh? 'sudo /bin/sh -c "(sleep {{ delay }} && reboot) &"'.mustache
|
230
230
|
# puts reboot_success
|
231
231
|
|
232
|
+
exit(ExitCodeHostTemporarilyUnavailable, "Host temporarily unavailable. Rebooting.") if rebooting
|
233
|
+
|
232
234
|
rebooting
|
233
235
|
end
|
234
236
|
|
235
|
-
def reboot_and_exit(delay: 1)
|
236
|
-
|
237
|
-
|
238
|
-
end
|
237
|
+
# def reboot_and_exit(delay: 1)
|
238
|
+
# # exit status 11 means Resource temporarily unavailable
|
239
|
+
# exit(ExitCodeHostTemporarilyUnavailable, "Host temporarily unavailable. Rebooting.") if reboot(delay)
|
240
|
+
# end
|
239
241
|
|
240
242
|
def exit(exit_status, message = nil)
|
241
243
|
if message
|
data/lib/opswalrus/version.rb
CHANGED