opswalrus 1.0.99 → 1.0.100

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 986a001009999eee38f00d024cde2f4efbf5f7630db345883624955e16d9b1de
4
- data.tar.gz: 98ec4b9694c11224cfe9690516fc8dccbc2334c671a77f58c860b18e65de76ef
3
+ metadata.gz: a03d48413be839240754e534eb147da0c5fee292c458b48233c903de045fef44
4
+ data.tar.gz: fae4f4c68fbf572b8f9f6b2ed226bb170ca14ae7f0ef652c65f16765fb67b043
5
5
  SHA512:
6
- metadata.gz: bb4d4214052a837ed9dbf8d230ef999fdb31813f3718e16f34bd6d29ef69fe6d56b96d2c99bc8c6e2ffd4cce63d54f40d0bcc21092a89b4b26ac73f96170b866
7
- data.tar.gz: 5ddd5ab59d20c6dea1ad21ae0719c56e9b49d4a7222bd33bfe885bcec720f570663c90ced1941a1cdb1765799bff33af5f95742144347759aba142be7006c687
6
+ metadata.gz: 11dd483152012c48dc536e5d55e16a3463a1bd8fb23b8f20e4742b424e5f5df77e5bff2289758160e14a7fab2bbd40e54bef745d1010b786459658ea95588867
7
+ data.tar.gz: b93e47275fe2319876ffa496b400d3c8e57efc2f93d6f6a981408a0c5d0dd92f31afdb21c13732ed2c2256f58eda0c14e3c5d2822cbd2970b2d351c18bc07f15
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- opswalrus (1.0.99)
4
+ opswalrus (1.0.100)
5
5
  activesupport (~> 7.0)
6
6
  bcrypt_pbkdf (~> 1.1)
7
7
  binding_of_caller (~> 1.0)
@@ -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: 1, timeout: 300)
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
- # exit status 11 means Resource temporarily unavailable
237
- exit(ExitCodeHostTemporarilyUnavailable, "Host temporarily unavailable. Rebooting.") if reboot(delay)
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
@@ -1,3 +1,3 @@
1
1
  module OpsWalrus
2
- VERSION = "1.0.99"
2
+ VERSION = "1.0.100"
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.99
4
+ version: 1.0.100
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Ellis