cloudstrap 0.38.18.pre → 0.39.0.pre

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cloudstrap/amazon/ec2.rb +4 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e225f883484d21b430decd880534f0e8cc196b80
4
- data.tar.gz: 9e7908b34eaf90065b1ab9c06bb2a49412e20b12
3
+ metadata.gz: 5c4cb5dae19069f5a05437bf292d88715c9b6fd8
4
+ data.tar.gz: 350a4301002b19771dc901e32bbd314d95d9b109
5
5
  SHA512:
6
- metadata.gz: 83fcf8b3e5ac45584630e45f3bfc24f072498f7d1c6cb606cd9ecfa023a5b70e4aa849f7a72bb8429be409ce6cfade80433d6b9555056cfd22f5a7446855e5fb
7
- data.tar.gz: 0e210538168f4f7136ad6d25f9c85b8cdd6992433f3da080694994e34c054b29fd0b93c93597581eb1fb2a9edc167ccd70e67dd8e18d9e77e2debd8949cb8331
6
+ metadata.gz: 86ae2e41ca6d4f34c46df1b46fa43165dd7862224093f6d1e97d15adfd2ec34702068cb6a1bb41f6d25a66784a6c3057899f1d7ffbde960bc57678feb951dab6
7
+ data.tar.gz: 94b34808bd260573df7dc6a1f0377c0e652191e7dae0739d596810647f9832e1b5c347f742599457d31710a684516f42fbd83b6419aad96960103c20a6ca9916
@@ -208,10 +208,11 @@ module Cloudstrap
208
208
  key_name: Optional[String],
209
209
  client_token: Optional[String],
210
210
  network_interfaces: Optional[ArrayOf[Hash]]
211
- ] => ::Aws::EC2::Types::Instance
211
+ ] => ::Aws::EC2::Instance
212
212
  def create_instance(**properties)
213
- call_api(:run_instances, properties.merge(min_count: 1, max_count: 1)).instances.first
214
- .tap { instances! }
213
+ reservation = call_api(:run_instances, properties.merge(min_count: 1, max_count: 1))
214
+ instance = ::Aws::EC2::Instance.new reservation.instances.first.instance_id
215
+ instance.wait_until_running.tap { instances! }
215
216
  end
216
217
 
217
218
  Contract None => ArrayOf[::Aws::EC2::Types::Image]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.38.18.pre
4
+ version: 0.39.0.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Olstrom