aws-spec-generator 0.1.44 → 0.2.0
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/aws/spec/generator/version.rb +1 -1
- data/lib/aws_spec_generator.rb +6 -2
- 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: ad63c9b253e4478e8aa382ec1535ccc8d1aaadf2
|
4
|
+
data.tar.gz: 60bce515513834f562190d8266e66b4de995442a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab4d7bed40c9c536a10f4e28479484ab29d045311905f138346a1112d3ebf51c9da26469f590940adfdcff473a32ed61e6780d85aaec9905742231d7cae9a483
|
7
|
+
data.tar.gz: 86256ea74b56252c606c120deb54ee6e3f6a47ac15b9a99a1028d23295d0f7aaccf346144689d5764f5580d600b21c51822e92f8b363f8cccbd810794ab88d50
|
data/lib/aws_spec_generator.rb
CHANGED
@@ -18,7 +18,7 @@ class AwsSpecGenerator
|
|
18
18
|
)
|
19
19
|
end
|
20
20
|
FileUtils.mkdir_p @output_directory
|
21
|
-
|
21
|
+
clear_dir(@output_directory)
|
22
22
|
@output_directory += File::SEPARATOR
|
23
23
|
query_vpc_ids
|
24
24
|
query_bucket_list
|
@@ -44,6 +44,7 @@ class AwsSpecGenerator
|
|
44
44
|
|
45
45
|
# Generate the EC2 tests
|
46
46
|
def generate_ec2_tests(account)
|
47
|
+
puts "Generating EC2 tests"
|
47
48
|
@vpc_list.each do |vpc|
|
48
49
|
target_file = File.absolute_path(
|
49
50
|
@output_directory + "ec2_on_#{vpc}_tests_spec.rb"
|
@@ -61,6 +62,7 @@ class AwsSpecGenerator
|
|
61
62
|
|
62
63
|
# Generate the ELB Tests
|
63
64
|
def generate_elb_tests(account)
|
65
|
+
puts "Generating ELB tests"
|
64
66
|
@vpc_list.each do |vpc|
|
65
67
|
target_file = File.absolute_path(
|
66
68
|
@output_directory + "elbs_on_#{vpc}_tests_spec.rb"
|
@@ -79,6 +81,7 @@ class AwsSpecGenerator
|
|
79
81
|
|
80
82
|
# Generate the SG tests
|
81
83
|
def generate_sg_tests(account)
|
84
|
+
puts "Generating SG tests"
|
82
85
|
@vpc_list.each do |vpc|
|
83
86
|
target_file = File.absolute_path(
|
84
87
|
@output_directory + "security_groups_on_#{vpc}_tests_spec.rb"
|
@@ -97,7 +100,7 @@ class AwsSpecGenerator
|
|
97
100
|
|
98
101
|
# Generate S3 Bucket tests
|
99
102
|
def generate_s3_tests(account)
|
100
|
-
|
103
|
+
puts "Generating S3 tests"
|
101
104
|
@bucket_list.each do |bucket|
|
102
105
|
target_file = File.absolute_path(@output_directory +
|
103
106
|
"s3_buckets_on_#{bucket['Name']}_tests_spec.rb")
|
@@ -123,6 +126,7 @@ class AwsSpecGenerator
|
|
123
126
|
|
124
127
|
# Generate NACL tests
|
125
128
|
def generate_nacl_tests(account)
|
129
|
+
puts "Generating NACL tests"
|
126
130
|
@vpc_list.each do |vpc|
|
127
131
|
target_file = File.absolute_path(
|
128
132
|
@output_directory + "nacls_on_#{vpc}_tests_spec.rb"
|