cloudstrap 0.40.1.pre → 0.40.3.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 +9 -4
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dbf453ee30aa4c0f6c5aa17b056e8c9c99ea9714
|
|
4
|
+
data.tar.gz: 6c16726af4668ad827e15c8a1c243a810fd424a2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9883340613aaf3b2192e375923d0765afefcd0a14402468119f0ce75d00394872ba0a38b7f59ae6ff2447a5abff61de3075c012f4e19524e1cfe9555508d61e9
|
|
7
|
+
data.tar.gz: 8677d2430a55dcc0ae64de19a57574c9fec1ebdc60a512b77d70b050320188323c8b5a419c7e5467ed9bec9bc942663fb0ef49fbe4c60aa8ec922b8307b7a138
|
|
@@ -274,9 +274,11 @@ module Cloudstrap
|
|
|
274
274
|
key_fingerprint(key_name)
|
|
275
275
|
end
|
|
276
276
|
|
|
277
|
-
Contract None => ::Aws::EC2::
|
|
277
|
+
Contract None => ::Aws::EC2::Vpc
|
|
278
278
|
def create_vpc
|
|
279
|
-
call_api(:create_vpc, cidr_block: config.vpc_cidr_block).vpc
|
|
279
|
+
response = call_api(:create_vpc, cidr_block: config.vpc_cidr_block).vpc
|
|
280
|
+
::Aws::EC2::Vpc.new(response.vpc_id)
|
|
281
|
+
.wait_until_available
|
|
280
282
|
.tap { vpcs! }
|
|
281
283
|
end
|
|
282
284
|
|
|
@@ -315,9 +317,12 @@ module Cloudstrap
|
|
|
315
317
|
cidr_block: String,
|
|
316
318
|
vpc_id: String,
|
|
317
319
|
availability_zone: Optional[String]
|
|
318
|
-
] => ::Aws::EC2::
|
|
320
|
+
] => ::Aws::EC2::Subnet
|
|
319
321
|
def create_subnet(**properties)
|
|
320
|
-
call_api(:create_subnet, properties).subnet
|
|
322
|
+
response = call_api(:create_subnet, properties).subnet
|
|
323
|
+
Aws::EC2::Subnet
|
|
324
|
+
.new(response.subnet_id)
|
|
325
|
+
.wait_until { |subnet| subnet.state == 'available' }
|
|
321
326
|
.tap { subnets! }
|
|
322
327
|
rescue ::Aws::EC2::Errors::InvalidSubnetConflict
|
|
323
328
|
subnet(properties) || subnet!(properties)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cloudstrap
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.40.
|
|
4
|
+
version: 0.40.3.pre
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Olstrom
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-12-
|
|
11
|
+
date: 2016-12-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk
|