piculet 0.1.1 → 0.1.2
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.
- data/lib/piculet/client.rb +11 -1
- data/lib/piculet/version.rb +1 -1
- metadata +2 -8
data/lib/piculet/client.rb
CHANGED
@@ -75,15 +75,25 @@ module Piculet
|
|
75
75
|
|
76
76
|
sg_list_dsl.each do |key, sg_dsl|
|
77
77
|
name = key[0]
|
78
|
-
sg_aws = sg_list_aws
|
78
|
+
sg_aws = sg_list_aws[key]
|
79
79
|
|
80
80
|
unless sg_aws
|
81
81
|
sg_aws = collection_api.create(name, :vpc => vpc, :description => sg_dsl.description)
|
82
|
+
sg_list_aws[key] = sg_aws
|
82
83
|
end
|
84
|
+
end
|
83
85
|
|
86
|
+
sg_list_dsl.each do |key, sg_dsl|
|
87
|
+
name = key[0]
|
88
|
+
sg_aws = sg_list_aws.delete(key)
|
84
89
|
walk_security_group(sg_dsl, sg_aws)
|
85
90
|
end
|
86
91
|
|
92
|
+
sg_list_aws.each do |key, sg_aws|
|
93
|
+
sg_aws.ingress_ip_permissions.each {|i| i.delete }
|
94
|
+
sg_aws.egress_ip_permissions.each {|i| i.delete } if vpc
|
95
|
+
end
|
96
|
+
|
87
97
|
sg_list_aws.each do |key, sg_aws|
|
88
98
|
sg_aws.delete
|
89
99
|
end
|
data/lib/piculet/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: piculet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-10-
|
12
|
+
date: 2013-10-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: aws-sdk
|
@@ -134,18 +134,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
134
134
|
- - ! '>='
|
135
135
|
- !ruby/object:Gem::Version
|
136
136
|
version: '0'
|
137
|
-
segments:
|
138
|
-
- 0
|
139
|
-
hash: 1002261455
|
140
137
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
141
138
|
none: false
|
142
139
|
requirements:
|
143
140
|
- - ! '>='
|
144
141
|
- !ruby/object:Gem::Version
|
145
142
|
version: '0'
|
146
|
-
segments:
|
147
|
-
- 0
|
148
|
-
hash: 1002261455
|
149
143
|
requirements: []
|
150
144
|
rubyforge_project:
|
151
145
|
rubygems_version: 1.8.23
|