aws-spec-generator 0.1.23 → 0.1.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws/spec/generator/version.rb +1 -1
- data/lib/aws_spec_generator.rb +6 -4
- 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: 0f863504555111d0bd441d4a01a4bd82b10dd125
|
4
|
+
data.tar.gz: 1de285947a33a30c22702efeac02ce16846d144a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0365347813906a85249bec423cfb0470af251a869a5f2418e60ff93c4914ca79a86138fa2b12bfcb4ab09ef0dafcaff59870849de269bf4232decc71fc10ab1f'
|
7
|
+
data.tar.gz: 6e8042e2e0d922a44d1b869a6b8d5846ba904a9ea9a8ff1bfe3d8a48217528adae7a7b198d23976da512d039968e318308ec6eee645922dd4fd14a984ebba2ac
|
data/lib/aws_spec_generator.rb
CHANGED
@@ -163,9 +163,11 @@ class AwsSpecGenerator
|
|
163
163
|
# retrieve the VPC names for this account
|
164
164
|
def query_vpc_ids
|
165
165
|
begin
|
166
|
-
stdout, stderr
|
167
|
-
rescue StandardError
|
168
|
-
raise('Error:
|
166
|
+
stdout, stderr = Open3.capture3('aws ec2 describe-vpcs')
|
167
|
+
rescue StandardError
|
168
|
+
raise('Error: Failed to recover vpc list')
|
169
|
+
rescue TypeError
|
170
|
+
raise('Error: Failed to recover vpc list: (' + stderr + ')')
|
169
171
|
end
|
170
172
|
|
171
173
|
JSON.parse(stdout)['Vpcs'].each do |vpc|
|
@@ -179,7 +181,7 @@ class AwsSpecGenerator
|
|
179
181
|
begin
|
180
182
|
stdout, stderr, status = Open3.capture3('aws s3api list-buckets')
|
181
183
|
rescue StandardError
|
182
|
-
raise('Error: ' + status + 'Failed to recover
|
184
|
+
raise('Error: ' + status + 'Failed to recover buckets list: (' + stderr + ')')
|
183
185
|
end
|
184
186
|
|
185
187
|
JSON.parse(stdout)['Buckets'].each do |bucket|
|