bigbluebutton-Github/record-and-playback/core/Rakefile
Calvin Walton 1654f26084 recording: Anonymize names in chat
Move the handling of chat events into the shared library so it can be
used by multiple recording formats.

The anonymization of names is based on the external user id, if
available, so users have a consistent name through the meeting. Note
that no effort is made to edit chat messages - if someone is mentioned
by name in a chat message, that will still be visible.

Default settings for anonymization can be controlled in
bigbluebutton.yml, and per-meeting overrides can be done using meta
parameters on the create call.
2021-09-02 15:02:27 -04:00

27 lines
744 B
Ruby

# frozen_string_literal: true
require 'resque/tasks'
require 'rake/testtask'
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
Rake::TestTask.new(:test) do |t|
t.libs << 'test'
t.libs << 'lib'
t.test_files = FileList['test/**/test_*.rb']
end