Class: DNSimple::Commands::SubmitCertificate
- Inherits:
-
DNSimple::Command
- Object
- DNSimple::Command
- DNSimple::Commands::SubmitCertificate
- Defined in:
- lib/dnsimple/commands/submit_certificate.rb
Instance Method Summary collapse
Methods inherited from DNSimple::Command
Constructor Details
This class inherits a constructor from DNSimple::Command
Instance Method Details
#execute(args, options = {}) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/dnsimple/commands/submit_certificate.rb', line 6 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) say "Certificate submitted, authorization by email required" end |