mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 06:34:46 +02:00
parent
640faaadb9
commit
42e8f86dae
51 changed files with 1619 additions and 53 deletions
17
lib/tasks/domains/release.rake
Normal file
17
lib/tasks/domains/release.rake
Normal file
|
@ -0,0 +1,17 @@
|
|||
namespace :domains do
|
||||
desc <<~TEXT.gsub("\n", "\s")
|
||||
Releases domains with past `delete_at` by either sending them to the auction or discarding,
|
||||
depending on `release_domains_to_auction` setting
|
||||
TEXT
|
||||
|
||||
task :release do
|
||||
released_domain_count = 0
|
||||
|
||||
Domain.release_domains do |domain|
|
||||
puts "#{domain} is released"
|
||||
released_domain_count += 1
|
||||
end
|
||||
|
||||
puts "Released total: #{released_domain_count}"
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue