Class: DNSimple::Commands::ListCertificates
- Inherits:
-
Object
- Object
- DNSimple::Commands::ListCertificates
- Defined in:
- lib/dnsimple/commands/list_certificates.rb
Instance Method Summary collapse
Instance Method Details
#execute(args, options = {}) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/dnsimple/commands/list_certificates.rb', line 4 def execute(args, ={}) domain_name = args.shift domain = DNSimple::Domain.find(domain_name) certificates = DNSimple::Certificate.all(domain) puts "Found #{certificates.length} certificate for #{domain_name}" certificates.each do |certificate| puts "\t#{certificate.fqdn} (id: #{certificate.id}, status: #{certificate.certificate_status})" end end |