moonshot 2.0.0.beta4 → 2.0.0.beta5

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
  SHA1:
3
- metadata.gz: c356399f35faaaf5a8607cdd8981be62eeae1ec5
4
- data.tar.gz: 5b84246b209003da95a2ec5debcd5418786efe93
3
+ metadata.gz: 3bed21aa6648d36d20b9f47e6268e4e3c4bfd20d
4
+ data.tar.gz: f5ca370a156a28748f19616be28a024f806ccf10
5
5
  SHA512:
6
- metadata.gz: 329a31f99d19662734d917c41036dbeef77398319feb9afe93e7375c3b57d1cbbda4a368e9b05d22a64620db4cc49d6a6f5359cfeeccac6e08b60fb504e325df
7
- data.tar.gz: a7917a5b06f86e4442e03ee976b48b6360eb7eef12c87634774a76b2f3983fca3a373a2391ec94a0088788c28620c916492f5fba421ae51ee186b8f0fc3d2d8d
6
+ metadata.gz: 2f349f6080008c8436de22f343fbf617027dcdf371882dce9b333d2e21f86422a5c05f3031205f7217f2037403b530f57af70e294daf3a49ad9858711b8d3cdb
7
+ data.tar.gz: 0ded82e8cffd9b798799c23f0b71fd153891b6a12b8ad0f0df5279340fcb9785c4c6e862dff7bb5526000b01fb6ea08b42519a54be1d28fd3d43994fecd1647b
@@ -130,15 +130,16 @@ module Moonshot
130
130
  timeout = @config.terminate_when_timeout
131
131
 
132
132
  loop do
133
- break if @config.terminate_when.call(he)
133
+ if @config.terminate_when.call(he)
134
+ s.success "Completed TerminateWhen check for #{instance.blue}!"
135
+ break
136
+ end
134
137
  sleep @config.terminate_when_delay
135
138
  if Time.now.to_f - start > timeout
136
139
  s.failure "TerminateWhen for #{instance.blue} did not complete in #{timeout} seconds!"
137
- raise "TerminateWhen for #{instance.blue} did not complete in #{timeout} seconds!"
140
+ break
138
141
  end
139
142
  end
140
-
141
- s.success "Completed TerminateWhen check for #{instance.blue}!"
142
143
  end
143
144
  end
144
145
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moonshot
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.beta4
4
+ version: 2.0.0.beta5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cloud Engineering <engineering@acquia.com>
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-15 00:00:00.000000000 Z
11
+ date: 2018-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk
@@ -363,4 +363,3 @@ signing_key:
363
363
  specification_version: 4
364
364
  summary: A library and CLI tool for launching services into AWS
365
365
  test_files: []
366
- has_rdoc: