aly 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/aly/app.rb +15 -18
- data/lib/aly/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8ccc78283759268e2374660bf543b44bee7b49e715c8e78da7584897e54c3a9
|
4
|
+
data.tar.gz: 27df10c05d066cf96d34b4d6c7e67701a4d9a53a5662535215e0489861d3a4b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7265019730f3b3b5620a0502f416cf74705f711df7fb49228b699d98a59efe9666293cccb314f41afe3a3a79d72e9ea2758465ba37a4af5bcc384f4291d0191
|
7
|
+
data.tar.gz: f1498dc9304a8c8f88bf10540142708cf1b094aa58865a0755d47894d2ec9fc0d9adb16c4cc5d8b5797cc7dc3b258388b0a6954865472fafee6df8b95b18a825
|
data/Gemfile.lock
CHANGED
data/lib/aly/app.rb
CHANGED
@@ -405,25 +405,22 @@ module Aly
|
|
405
405
|
puts listener_rules.table.to_s.gsub(/^/, ' ')
|
406
406
|
puts
|
407
407
|
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
end + [nil]
|
421
|
-
end
|
422
|
-
puts ' Access Control Lists:'
|
423
|
-
puts alc_entries[0..-2].table.to_s.gsub(/^/, ' ')
|
424
|
-
puts
|
408
|
+
acl_ids = listeners.flat_map { |listener| listener['AclIds'] || [] }.uniq
|
409
|
+
unless acl_ids.empty?
|
410
|
+
alc_entries = acl_ids.flat_map do |acl_id|
|
411
|
+
attr = exec('slb', 'DescribeAccessControlListAttribute', "--AclId=#{acl_id}", **options)
|
412
|
+
(attr.dig('AclEntrys', 'AclEntry') || []).each_with_index.map do |e, idx|
|
413
|
+
{
|
414
|
+
AclId: (idx.zero? ? attr['AclId'] : ''),
|
415
|
+
AclName: (idx.zero? ? attr['AclName'] : ''),
|
416
|
+
AclEntryIP: e['AclEntryIP'],
|
417
|
+
AclEntryComment: e['AclEntryComment']
|
418
|
+
}
|
419
|
+
end + [nil]
|
425
420
|
end
|
426
|
-
|
421
|
+
puts ' Access Control Lists:'
|
422
|
+
puts alc_entries[0..-2].table.to_s.gsub(/^/, ' ')
|
423
|
+
puts
|
427
424
|
end
|
428
425
|
end
|
429
426
|
|
data/lib/aly/version.rb
CHANGED