aws-spec-generator 0.1.42 → 0.1.43
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 +8 -28
- 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: 93d393107853c476eb78d203ae890fa0582ad599
|
4
|
+
data.tar.gz: b504c7ae313e42f6f2b3dbafff4726af61e453a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f84c8843b5a8b121d57f27a90764c65b6419942c66555853ea5b6e85f6976290ded1217eb0a78585846814e762b9bba1cefec630ed432c770b62e3ece58e33f4
|
7
|
+
data.tar.gz: f65316f88ecd19960fb1aea9cf4c1af85f70cb0c1a5c431d0dac3004fa33fd4d3929ecda40e2acfe41c265b20d11b6d9d78c3f80e9be5e20a1712fc7609e9fbb
|
data/lib/aws_spec_generator.rb
CHANGED
@@ -52,13 +52,8 @@ class AwsSpecGenerator
|
|
52
52
|
f.write("require_relative '../../spec_helper'\n\ncontext '#{vpc} tests', #{account}: true do\n\n")
|
53
53
|
end
|
54
54
|
|
55
|
-
|
56
|
-
|
57
|
-
"awspec generate ec2 #{vpc} >> \"#{target_file}\""
|
58
|
-
)
|
59
|
-
rescue StandardError
|
60
|
-
raise 'Failed to generate ec2 tests (' + stderr + ')'
|
61
|
-
end
|
55
|
+
stdout, stderr, status = Open3.capture3("awspec generate ec2 #{vpc} >> \"#{target_file}\"")
|
56
|
+
raise 'Failed to generate ec2 tests (' + stderr + ')' unless status.success?
|
62
57
|
|
63
58
|
File.open(target_file, 'a+') { |f|f.write("end\n") }
|
64
59
|
end
|
@@ -75,13 +70,8 @@ class AwsSpecGenerator
|
|
75
70
|
" #{vpc} tests', #{account}: true do\n\n")
|
76
71
|
end
|
77
72
|
|
78
|
-
|
79
|
-
|
80
|
-
"awspec generate elb #{vpc} >> \"#{target_file}\""
|
81
|
-
)
|
82
|
-
rescue StandardError
|
83
|
-
raise 'Failed to generate elb tests (' + stderr + ')'
|
84
|
-
end
|
73
|
+
stdout, stderr, status = Open3.capture3("awspec generate elb #{vpc} >> \"#{target_file}\"")
|
74
|
+
raise 'Failed to generate elb tests (' + stderr + ')' unless status.success?
|
85
75
|
|
86
76
|
File.open(target_file, 'a+') { |f|f.write("end\n") }
|
87
77
|
end
|
@@ -98,13 +88,8 @@ class AwsSpecGenerator
|
|
98
88
|
" #{vpc} tests', #{account}: true do\n\n")
|
99
89
|
end
|
100
90
|
|
101
|
-
|
102
|
-
|
103
|
-
"awspec generate security_group #{vpc} >> \"#{target_file}\""
|
104
|
-
)
|
105
|
-
rescue StandardError
|
106
|
-
raise 'Error: (' + status + ') Failed to generate security_group tests (' + stderr + ')'
|
107
|
-
end
|
91
|
+
stdout, stderr, status = Open3.capture3("awspec generate security_group #{vpc} >> \"#{target_file}\"")
|
92
|
+
raise 'Error: (' + status + ') Failed to generate security_group tests (' + stderr + ')' unless status.success?
|
108
93
|
|
109
94
|
File.open(target_file, 'a+') { |f|f.write("end\n") }
|
110
95
|
end
|
@@ -149,13 +134,8 @@ class AwsSpecGenerator
|
|
149
134
|
)
|
150
135
|
end
|
151
136
|
|
152
|
-
|
153
|
-
|
154
|
-
"awspec generate network_acl #{vpc} >> \"#{target_file}\""
|
155
|
-
)
|
156
|
-
rescue StandardError
|
157
|
-
raise 'Failed to generate nacl tests (' + stderr + ')'
|
158
|
-
end
|
137
|
+
stdout, stderr, status = Open3.capture3("awspec generate network_acl #{vpc} >> \"#{target_file}\"")
|
138
|
+
raise 'Failed to generate nacl tests (' + stderr + ')' unless status.success?
|
159
139
|
|
160
140
|
File.open(target_file, 'a+') { |f|f.write("end\n") }
|
161
141
|
end
|