mirror of
https://github.com/internetee/registry.git
synced 2025-07-27 21:16:12 +02:00
added rake task
This commit is contained in:
parent
4e6865332e
commit
156fc8194d
1 changed files with 5 additions and 0 deletions
|
@ -43,4 +43,9 @@ namespace :whois do
|
||||||
end
|
end
|
||||||
puts "\n-----> all done in #{(Time.zone.now.to_f - start).round(2)} seconds"
|
puts "\n-----> all done in #{(Time.zone.now.to_f - start).round(2)} seconds"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
desc 'Update whois status records for zones'
|
||||||
|
task update_status: :environment do
|
||||||
|
DNS::Zone.all.each(&:generate_data)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue