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:
parent
c33f1cb767
commit
1057fdd3a9
1 changed files with 6 additions and 0 deletions
6
lib/tasks/pets.rake
Normal file
6
lib/tasks/pets.rake
Normal 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
|
Loading…
Reference in a new issue