Integrate auction

Closes #874
This commit is contained in:
Artur Beljajev 2018-11-29 15:08:22 +02:00
parent 640faaadb9
commit 42e8f86dae
51 changed files with 1619 additions and 53 deletions

View 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