Class: DNSimple::Commands::DeleteDomain
- Inherits:
-
Object
- Object
- DNSimple::Commands::DeleteDomain
- Defined in:
- lib/dnsimple/commands/delete_domain.rb
Instance Method Summary collapse
Instance Method Details
#execute(args, options = {}) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/dnsimple/commands/delete_domain.rb', line 4 def execute(args, ={}) name_or_id = args.shift domain = Domain.find(name_or_id) domain.delete puts "Deleted #{domain.name}" end |