mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 03:06:14 +02:00
Create job for regenerating Subzone WHOIS entries
This commit is contained in:
parent
7a50d6ae9f
commit
2ed7f467aa
2 changed files with 29 additions and 0 deletions
11
app/jobs/regenerate_subzone_whoises_job.rb
Normal file
11
app/jobs/regenerate_subzone_whoises_job.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
class RegenerateSubzoneWhoisesJob < Que::Job
|
||||
def run
|
||||
subzones = DNS::Zone.all
|
||||
|
||||
subzones.each do |zone|
|
||||
next unless zone.subzone?
|
||||
|
||||
UpdateWhoisRecordJob.enqueue zone.origin, 'zone'
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue