vominator 0.0.4 → 0.0.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 61aa5aa4219f1c8ba73dec1fb6e1f744a6e16a4a
4
- data.tar.gz: b2b37663a514445625d19385a431c5b8b713802e
3
+ metadata.gz: df8f85f6947267db639529228577d5a68abae624
4
+ data.tar.gz: bbb7d3a3af1beabd8b0ef02ecafc42fb78c78fd4
5
5
  SHA512:
6
- metadata.gz: bcae14c7f5a4cc24d85617d7405e0c4bb0bef740888bd1c5764b5c85f62ed92d57782eadee4021006890074a36e0275b1957c69326114f8a64b1a9ff88663871
7
- data.tar.gz: a3915f5d7481a17376e703674e8f657e6ae091b38398343e86ee1601fca1239202e20f6ab638d6bfc744323b35f3051f33d2f7d1570bc9a8704c34035683d54a
6
+ metadata.gz: d2605999e47f293804e313ba649b36113b716bf2b452276c7d7576c589d3b288eeed3fe384797f65f09be18755c78885a6be7d44160bec75243f0528c921c81d
7
+ data.tar.gz: e69fb004a278997d0eedf07c0217804967045f8d3403e0e50462a677d9073c3f30c5d70ef2c530ebe9927a071a6ed1b9fb2fd2465dd05a908f96e398208ca591
@@ -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]
@@ -1,3 +1,3 @@
1
1
  module Vominator
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
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
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-26 00:00:00.000000000 Z
13
+ date: 2016-02-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: aws-sdk