awspec 0.6.3 → 0.6.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bd66c5998ff792bc57b289b71b8f44011f38e865
4
- data.tar.gz: 7d66ddffc3463330c2a5fe4c5f17cbe58d9932fe
3
+ metadata.gz: f11f570bd3baccbf168acca89a9c971997a96d66
4
+ data.tar.gz: 096afe67126b842e80dbf9f9b9816835c6f3e32c
5
5
  SHA512:
6
- metadata.gz: dfc8a2ec45b19e6db2a92e6b4fafb7643bb941c603c9a67881057d89bc884d09fef79c093571ceb0ee9b14f0d52c6ef5f87f75d24724123b1caf67f7628b1b5b
7
- data.tar.gz: 98287787ce01a141a5fb6cb2f00477b50dcc7a7e1d0c5beedf62622288ed846fbd903b785652f85feebb999262279f73efe187ce111ca607398c275736662fd2
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.group_name %>') do
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) -%>
@@ -1,3 +1,3 @@
1
1
  module Awspec
2
- VERSION = '0.6.3'
2
+ VERSION = '0.6.4'
3
3
  end
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.3
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-23 00:00:00.000000000 Z
11
+ date: 2015-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec