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.
- checksums.yaml +4 -4
- data/lib/cloudstrap/amazon/ec2.rb +4 -3
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5c4cb5dae19069f5a05437bf292d88715c9b6fd8
|
|
4
|
+
data.tar.gz: 350a4301002b19771dc901e32bbd314d95d9b109
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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::
|
|
211
|
+
] => ::Aws::EC2::Instance
|
|
212
212
|
def create_instance(**properties)
|
|
213
|
-
call_api(:run_instances, properties.merge(min_count: 1, max_count: 1))
|
|
214
|
-
|
|
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]
|