1namespace :epets do |
|
2 namespace :countries do |
|
3 desc "Add task to the queue to fetch country list from the register" |
|
4 task :fetch => :environment do |
|
5 Task.run("epets:countries:fetch") do |
|
6 FetchCountryRegisterJob.perform_later |
|
7 end |
|
8 end |
|
9 end |
|
10end |