Skip to content

Commit

Permalink
Add rake task urn:generate
Browse files Browse the repository at this point in the history
This task is going to be used to ensure that when start the
application service the URNs are ready to be picked.
  • Loading branch information
fumimowdan committed Sep 27, 2023
1 parent f3162cc commit 72cda92
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/tasks/urn.rake
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace :urn do
desc "generate and randomize unique urns"
task generate: :environment do
puts "running rake task urn:generate ..."
a = Urn.count
GenerateUrns.call
b = Urn.count
puts "#{b - a} URN created"
end
end

0 comments on commit 72cda92

Please sign in to comment.