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:
parent
afd60af764
commit
8285b416db
1 changed files with 11 additions and 0 deletions
11
Rakefile
11
Rakefile
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue