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

@ -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

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