Class: DNSimple::Commands::PurchaseCertificate
- Inherits:
-
DNSimple::Command
- Object
- DNSimple::Command
- DNSimple::Commands::PurchaseCertificate
- Defined in:
- lib/dnsimple/commands/purchase_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/purchase_certificate.rb', line 6 def execute(args, ={}) domain_name = args.shift name = args.shift contact_id = args.shift domain = Domain.find(domain_name) contact = Contact.find(contact_id) certificate = Certificate.purchase(domain, name, contact) say "Purchased certificate for #{certificate.fqdn}" end |