bigbluebutton-Github/record-and-playback/core/Rakefile
2017-07-13 17:48:20 -03:00

18 lines
635 B
Ruby

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', __FILE__))
end
task :environment do
require File.expand_path('../lib/recordandplayback', __FILE__)
require File.expand_path('../scripts/workers/workers', __FILE__)
end