Class: DNSimple::Commands::ClearDomain
- Inherits:
-
Object
- Object
- DNSimple::Commands::ClearDomain
- Defined in:
- lib/dnsimple/commands/clear_domain.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/clear_domain.rb', line 4 def execute(args, ={}) name = args.shift records = Record.all(name) records.each do |record| record.delete end puts "Deleted #{records.length} records from #{name}" end |