Added task to scan a channel's storage for videos to import

This commit is contained in:
2023-03-05 10:02:25 -05:00
parent aea9415bbd
commit 89ebf5c792
2 changed files with 59 additions and 0 deletions

View File

@ -7,6 +7,11 @@ namespace :db do
task :migrate do
%x{sequel -m 'db/migrations/' 'sqlite://data/stgm.db'}
end
task :import do
channel = ENV['channel']
puts %x{ruby scan.rb "#{channel}"}
end
end
namespace :server do