1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[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

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