Add rake task to load pet data

Just a quick lil shortcut to look up a pet, I've wanted this recently!
This commit is contained in:
Emi Matchu 2024-01-24 00:51:37 -08:00
parent c33f1cb767
commit 1057fdd3a9

6
lib/tasks/pets.rake Normal file
View file

@ -0,0 +1,6 @@
namespace :pets do
desc "Load a pet's viewer data"
task :load, [:name] => [:environment] do |task, args|
pp Pet.fetch_viewer_data(args[:name])
end
end