mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 05:34:46 +02:00
parent
640faaadb9
commit
42e8f86dae
51 changed files with 1619 additions and 53 deletions
|
@ -1,13 +0,0 @@
|
|||
namespace :domain do
|
||||
desc 'Discard domains'
|
||||
task discard: :environment do
|
||||
domain_count = 0
|
||||
|
||||
Domain.discard_domains do |domain|
|
||||
puts "#{domain} is discarded"
|
||||
domain_count = domain_count + 1
|
||||
end
|
||||
|
||||
puts "Discarded total: #{domain_count}"
|
||||
end
|
||||
end
|
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