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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a03d48413be839240754e534eb147da0c5fee292c458b48233c903de045fef44
4
- data.tar.gz: fae4f4c68fbf572b8f9f6b2ed226bb170ca14ae7f0ef652c65f16765fb67b043
3
+ metadata.gz: d9e2fc17763df2c4270f2e901c6ba7d1d734531002f7a4fe28c9f6a4b80c36f3
4
+ data.tar.gz: 3ad0b7702e920c58cc790cf20bac37ab333ffee54e71fa8cf5ea050598439229
5
5
  SHA512:
6
- metadata.gz: 11dd483152012c48dc536e5d55e16a3463a1bd8fb23b8f20e4742b424e5f5df77e5bff2289758160e14a7fab2bbd40e54bef745d1010b786459658ea95588867
7
- data.tar.gz: b93e47275fe2319876ffa496b400d3c8e57efc2f93d6f6a981408a0c5d0dd92f31afdb21c13732ed2c2256f58eda0c14e3c5d2822cbd2970b2d351c18bc07f15
6
+ metadata.gz: 15d1cd53c176e10c1654c07354e98fd11875bbdc5b4de886f80b6030b0191b213814880711287459b6578c50945a8e694db892de5d36c849f509407d078acd27
7
+ data.tar.gz: c86a4a5dd58029ca5b825eda990e1e3ddf5cdb6b6d22c163c75a7134540a4bb9293974e0f164007a73b9035948af44ed715f29b747d06f2ce67c4716fe250898
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- opswalrus (1.0.100)
4
+ opswalrus (1.0.101)
5
5
  activesupport (~> 7.0)
6
6
  bcrypt_pbkdf (~> 1.1)
7
7
  binding_of_caller (~> 1.0)
@@ -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
- @host_proxy.execute(:rm, "-f", remote_json_kwargs_tempfile_basename)
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
- @host_proxy.execute(:rm, "-f", remote_json_kwargs_tempfile_basename)
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: 1 - 1 second delay before reboot
225
- def reboot(delay: 1)
226
- delay = 1 if delay < 1
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
@@ -1,3 +1,3 @@
1
1
  module OpsWalrus
2
- VERSION = "1.0.100"
2
+ VERSION = "1.0.101"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opswalrus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.100
4
+ version: 1.0.101
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Ellis