awspec 0.6.3 → 0.6.4
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/awspec/generator/spec/security_group.rb +3 -2
- data/lib/awspec/version.rb +1 -1
- 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: f11f570bd3baccbf168acca89a9c971997a96d66
|
|
4
|
+
data.tar.gz: 096afe67126b842e80dbf9f9b9816835c6f3e32c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: de14b836c23172c9eae094c98526c9bf60e3d630ff93f3eb9de814aae716991430cb6db6f1f890736ef59603ff0e7cdbc679eca4e83b4e41bb86e88d44ee9805
|
|
7
|
+
data.tar.gz: 59be9e42e0934b1ffcf9b92d592277aeaf2aab25361cfe92e4bcbb3149e435073e0c8d9e4f1db600f2f7a5d9b8fd6d7ccf678640dbd7b41b170197ede1e4c84c
|
|
@@ -4,7 +4,7 @@ module Awspec::Generator
|
|
|
4
4
|
include Awspec::Helper::Finder
|
|
5
5
|
def generate_by_vpc_id(vpc_id)
|
|
6
6
|
describes = %w(
|
|
7
|
-
group_id
|
|
7
|
+
group_id group_name
|
|
8
8
|
)
|
|
9
9
|
vpc = find_vpc(vpc_id)
|
|
10
10
|
fail 'Not Found VPC' unless vpc
|
|
@@ -36,6 +36,7 @@ module Awspec::Generator
|
|
|
36
36
|
end
|
|
37
37
|
permission.user_id_group_pairs.each do |group|
|
|
38
38
|
target = group.group_name
|
|
39
|
+
target = group.group_id unless group.group_name
|
|
39
40
|
linespecs.push(ERB.new(security_group_spec_linetemplate, nil, '-').result(binding))
|
|
40
41
|
end
|
|
41
42
|
end
|
|
@@ -52,7 +53,7 @@ EOF
|
|
|
52
53
|
|
|
53
54
|
def security_group_spec_template
|
|
54
55
|
template = <<-'EOF'
|
|
55
|
-
describe security_group('<%= sg.
|
|
56
|
+
describe security_group('<%= sg.group_id %>') do
|
|
56
57
|
it { should exist }
|
|
57
58
|
<% describes.each do |describe| %>
|
|
58
59
|
<%- if sg.key?(describe) -%>
|
data/lib/awspec/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: awspec
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- k1LoW
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-08-
|
|
11
|
+
date: 2015-08-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|