Class: DNSimple::Commands::CertificatePurchase
- Inherits:
-
Object
- Object
- DNSimple::Commands::CertificatePurchase
- Defined in:
- lib/dnsimple/commands/certificate_purchase.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_purchase.rb', line 4 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) puts "Purchased certificate for #{certificate.fqdn}" end |