Class: DNSimple::Commands::CertificateSubmit
- Inherits:
-
Object
- Object
- DNSimple::Commands::CertificateSubmit
- Defined in:
- lib/dnsimple/commands/certificate_submit.rb
Instance Method Summary collapse
Instance Method Details
#execute(args, options = {}) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/dnsimple/commands/certificate_submit.rb', line 4 def execute(args, = {}) domain_name = args.shift certificate_id = args.shift approver_email = args.shift domain = DNSimple::Domain.find(domain_name) certificate = DNSimple::Certificate.find(domain, certificate_id) certificate.submit(approver_email) puts "Certificate submitted, authorization by email required" end |