Module: Awspec::Helper::Finder::Acm
- Included in:
- Awspec::Helper::Finder
- Defined in:
- lib/awspec/helper/finder/acm.rb
Instance Method Summary collapse
Instance Method Details
#find_certificate(domain) ⇒ Object
4 5 6 7 |
# File 'lib/awspec/helper/finder/acm.rb', line 4 def find_certificate(domain) cert = acm_client.list_certificates.certificate_summary_list.find { |c| c[:domain_name] == domain } acm_client.describe_certificate({ certificate_arn: cert.certificate_arn }).certificate end |
#select_all_certificates ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/awspec/helper/finder/acm.rb', line 9 def select_all_certificates certificates = [] acm_client.list_certificates.certificate_summary_list.each do |cert| certificates << acm_client.describe_certificate({ certificate_arn: cert.certificate_arn }).certificate end certificates end |