[core] kill dns stuff in nuke as well
This commit is contained in:
parent
afd60af764
commit
8285b416db
11
Rakefile
11
Rakefile
|
@ -107,6 +107,17 @@ task :nuke do
|
||||||
end
|
end
|
||||||
rescue
|
rescue
|
||||||
end
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue