[core] kill dns stuff in nuke as well

This commit is contained in:
geemus 2011-09-27 16:04:38 -05:00
parent afd60af764
commit 8285b416db
1 changed files with 11 additions and 0 deletions

View File

@ -107,6 +107,17 @@ task :nuke do
end
rescue
end
begin
dns = Fog::DNS.new(:provider => provider)
for zone in dns.zones
for record in zone.records
record.destroy rescue nil
end
Formatador.display_line("[#{provider}] destroying zone #{zone.identity}")
zone.destroy rescue nil
end
rescue
end
end
end