bigbluebutton-Github/record-and-playback/core/Rakefile
Calvin Walton 9f9e2a0c47 rap: Fix require paths in Rakefile
I moved the location of the worker classes around, but forgot to update
the Rakefile to include them from the new location.
2020-01-28 12:43:28 -05:00

20 lines
598 B
Ruby

# frozen_string_literal: true
require 'resque/tasks'
task 'resque:setup' => :environment do
props = BigBlueButton.read_props
redis_host = props['redis_workers_host'] || props['redis_host']
redis_port = props['redis_workers_port'] || props['redis_port']
Resque.redis = "#{redis_host}:#{redis_port}"
# Make sure we're in the right directory because several rap scripts assume
# they are being executed from there and will fail otherwise
Dir.chdir(File.expand_path('scripts', __dir__))
end
task :environment do
require_relative 'lib/boot'
require 'recordandplayback/workers'
end