vominator 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ec2/security_groups.rb +14 -0
- data/lib/vominator/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: df8f85f6947267db639529228577d5a68abae624
|
4
|
+
data.tar.gz: bbb7d3a3af1beabd8b0ef02ecafc42fb78c78fd4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2605999e47f293804e313ba649b36113b716bf2b452276c7d7576c589d3b288eeed3fe384797f65f09be18755c78885a6be7d44160bec75243f0528c921c81d
|
7
|
+
data.tar.gz: e69fb004a278997d0eedf07c0217804967045f8d3403e0e50462a677d9073c3f30c5d70ef2c530ebe9927a071a6ed1b9fb2fd2465dd05a908f96e398208ca591
|
data/lib/ec2/security_groups.rb
CHANGED
@@ -175,6 +175,13 @@ puke_security_groups.each do |puke_security_group|
|
|
175
175
|
cidr_block_regex = /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/([0-9]|[0-2][0-9]|3[0-2]))$/
|
176
176
|
|
177
177
|
puke_security_group['ingress'].each do |rule|
|
178
|
+
|
179
|
+
# If this specific rule is marked for specific environments and this one isnt it then skip over it.
|
180
|
+
if rule['environments'] && !rule['environments'].include?(options[:environment])
|
181
|
+
LOGGER.info("Skipping over #{rule} as its not marked for creation in #{options[:environment]}")
|
182
|
+
next
|
183
|
+
end
|
184
|
+
|
178
185
|
#TODO: Normalize all to -1 for ip_protocol
|
179
186
|
if rule['ports'].to_s.include?('..')
|
180
187
|
from_port = rule['ports'].split('..')[0]
|
@@ -220,6 +227,13 @@ puke_security_groups.each do |puke_security_group|
|
|
220
227
|
cidr_block_regex = /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/([0-9]|[0-2][0-9]|3[0-2]))$/
|
221
228
|
|
222
229
|
puke_security_group['egress'].each do |rule|
|
230
|
+
|
231
|
+
# If this specific rule is marked for specific environments and this one isnt it then skip over it.
|
232
|
+
if rule['environments'] && !rule['environments'].include?(options[:environment])
|
233
|
+
LOGGER.info("Skipping over #{rule} as its not marked for creation in #{options[:environment]}")
|
234
|
+
next
|
235
|
+
end
|
236
|
+
|
223
237
|
#TODO: Normalize all to -1 for ip_protocol
|
224
238
|
if rule['ports'].to_s.include?('..')
|
225
239
|
from_port = rule['ports'].split('..')[0]
|
data/lib/vominator/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vominator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Kelly
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-02-
|
13
|
+
date: 2016-02-27 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: aws-sdk
|