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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3a2457a76990e5b419f291514cc1fef338740d4d92ec8e1cafef0722f5a9e898
4
- data.tar.gz: 976571d639a35952bde380eac487c4d4532f5746d8c5ce39acc62f8d31dbb2d7
3
+ metadata.gz: a8ccc78283759268e2374660bf543b44bee7b49e715c8e78da7584897e54c3a9
4
+ data.tar.gz: 27df10c05d066cf96d34b4d6c7e67701a4d9a53a5662535215e0489861d3a4b9
5
5
  SHA512:
6
- metadata.gz: b243a6c0e3424e6078441fa504eedad8c88a32a032134a6494fc4fc40fa4819d030e1d26c2ae15a88754e4b8f7fa8d669c149b5322ecb8cf2929c41937074891
7
- data.tar.gz: 1c8dcfa337ab879b1fa4d45b7e92686286fee9c04e79231277cf6d051cacfc1c3e28b720b0e6aa709fc5f418164377718a65240fe40fadcba35411779cec443b
6
+ metadata.gz: b7265019730f3b3b5620a0502f416cf74705f711df7fb49228b699d98a59efe9666293cccb314f41afe3a3a79d72e9ea2758465ba37a4af5bcc384f4291d0191
7
+ data.tar.gz: f1498dc9304a8c8f88bf10540142708cf1b094aa58865a0755d47894d2ec9fc0d9adb16c4cc5d8b5797cc7dc3b258388b0a6954865472fafee6df8b95b18a825
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- aly (0.3.1)
4
+ aly (0.3.2)
5
5
  terminal-table (~> 1.8.0)
6
6
  thor (~> 0.20.0)
7
7
 
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
- if options['acl']
409
- acl_ids = listeners.flat_map { |listener| listener['AclIds'] || [] }.uniq
410
- unless acl_ids.empty?
411
- alc_entries = acl_ids.flat_map do |acl_id|
412
- attr = exec('slb', 'DescribeAccessControlListAttribute', "--AclId=#{acl_id}", **options)
413
- (attr.dig('AclEntrys', 'AclEntry') || []).each_with_index.map do |e, idx|
414
- {
415
- AclId: (idx.zero? ? attr['AclId'] : ''),
416
- AclName: (idx.zero? ? attr['AclName'] : ''),
417
- AclEntryIP: e['AclEntryIP'],
418
- AclEntryComment: e['AclEntryComment']
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Aly
4
- VERSION = "0.3.1"
4
+ VERSION = "0.3.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Liu Xiang