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