aws-spec-generator 0.1.12 → 0.1.13
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 +9 -0
- 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: d0351526cc39efeb68d3ce4673e9e24be96ba90b
|
|
4
|
+
data.tar.gz: 6bdcf8b5ec88aff9d004fa5c448dd5c90c309d4f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 56cabf3936b78db0e52a83e77eb5656e283282a1c5eff1dc5058202641332949a3e384c421bd5ea30c88629472a5928c31fd55a4620960b1286528e5483d7fa4
|
|
7
|
+
data.tar.gz: 4477d491fefa8f5f520cda7a6491cdcd8994063f59f5493a2b21f3486f0e5844c85524f56e22b3938296d27eef1fd9cec3484d0389b5160662c08626ace0b4ec
|
data/lib/aws_spec_generator.rb
CHANGED
|
@@ -18,10 +18,19 @@ class AwsSpecGenerator
|
|
|
18
18
|
end
|
|
19
19
|
FileUtils.mkdir_p @output_directory
|
|
20
20
|
@output_directory += File::SEPARATOR
|
|
21
|
+
clear_output_dir(@output_directory)
|
|
21
22
|
query_vpc_ids
|
|
22
23
|
query_bucket_list
|
|
23
24
|
end
|
|
24
25
|
|
|
26
|
+
# Clear out the last run
|
|
27
|
+
def clear_output_dir(dir)
|
|
28
|
+
Dir.glob("#{dir}*spec.rb").foreach do |f|
|
|
29
|
+
puts "FOUND FILES = #{f}"
|
|
30
|
+
# File.delete(fn) unless !File.directory?(fn)
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
25
34
|
# Generate tests for all accounts
|
|
26
35
|
def generate_all(account)
|
|
27
36
|
generate_ec2_tests(account)
|