Class: Vaws::Aws::AcmDescriber
- Defined in:
- lib/vaws/aws/acm_describer.rb
Instance Attribute Summary collapse
-
#term_table ⇒ Object
readonly
Returns the value of attribute term_table.
Instance Method Summary collapse
-
#initialize ⇒ AcmDescriber
constructor
A new instance of AcmDescriber.
- #set_basic_info ⇒ Object
Constructor Details
#initialize ⇒ AcmDescriber
Returns a new instance of AcmDescriber.
9 10 11 12 |
# File 'lib/vaws/aws/acm_describer.rb', line 9 def initialize @acm_client = ::Aws::ACM::Client.new @term_table = '' end |
Instance Attribute Details
#term_table ⇒ Object (readonly)
Returns the value of attribute term_table.
7 8 9 |
# File 'lib/vaws/aws/acm_describer.rb', line 7 def term_table @term_table end |
Instance Method Details
#set_basic_info ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/vaws/aws/acm_describer.rb', line 14 def set_basic_info rows = [] certs = @acm_client.list_certificates({ max_items: 1000 }) certs.certificate_summary_list.each do |cert| cert_arn = cert.certificate_arn cert_domain = cert.domain_name rows << [cert_domain, cert_arn] end @term_table = Terminal::Table.new :headings => ['Domain', 'Arn'], :rows => rows.sort end |