opswalrus 1.0.100 → 1.0.101
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/invocation.rb +4 -2
- data/lib/opswalrus/ops_file_script_dsl.rb +3 -3
- 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: d9e2fc17763df2c4270f2e901c6ba7d1d734531002f7a4fe28c9f6a4b80c36f3
|
4
|
+
data.tar.gz: 3ad0b7702e920c58cc790cf20bac37ab333ffee54e71fa8cf5ea050598439229
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15d1cd53c176e10c1654c07354e98fd11875bbdc5b4de886f80b6030b0191b213814880711287459b6578c50945a8e694db892de5d36c849f509407d078acd27
|
7
|
+
data.tar.gz: c86a4a5dd58029ca5b825eda990e1e3ddf5cdb6b6d22c163c75a7134540a4bb9293974e0f164007a73b9035948af44ed715f29b747d06f2ce67c4716fe250898
|
data/Gemfile.lock
CHANGED
data/lib/opswalrus/invocation.rb
CHANGED
@@ -151,7 +151,8 @@ module OpsWalrus
|
|
151
151
|
end
|
152
152
|
# todo: make sure this cleanup is present
|
153
153
|
if remote_json_kwargs_tempfile_basename
|
154
|
-
|
154
|
+
# this may fail if the remote host reboots and we try to subsequently connect and delete the file
|
155
|
+
@host_proxy.execute(:rm, "-f", remote_json_kwargs_tempfile_basename) rescue nil
|
155
156
|
end
|
156
157
|
end
|
157
158
|
end
|
@@ -293,7 +294,8 @@ module OpsWalrus
|
|
293
294
|
end
|
294
295
|
# todo: make sure this cleanup is present
|
295
296
|
if remote_json_kwargs_tempfile_basename
|
296
|
-
|
297
|
+
# this may fail if the remote host reboots and we try to subsequently connect and delete the file
|
298
|
+
@host_proxy.execute(:rm, "-f", remote_json_kwargs_tempfile_basename) rescue nil
|
297
299
|
end
|
298
300
|
end
|
299
301
|
end
|
@@ -221,9 +221,9 @@ module OpsWalrus
|
|
221
221
|
@runtime_env.app.inventory(tags).hosts
|
222
222
|
end
|
223
223
|
|
224
|
-
# delay: integer? # default:
|
225
|
-
def reboot(delay:
|
226
|
-
delay =
|
224
|
+
# delay: integer? # default: 5 - 5 second delay before reboot
|
225
|
+
def reboot(delay: 5)
|
226
|
+
delay = 5 if delay < 1
|
227
227
|
|
228
228
|
# desc "Rebooting"
|
229
229
|
rebooting = sh? 'sudo /bin/sh -c "(sleep {{ delay }} && reboot) &"'.mustache
|
data/lib/opswalrus/version.rb
CHANGED