Class: BigbluebuttonUpdateServerConfigs

Inherits:
Object
  • Object
show all
Defined in:
app/workers/bigbluebutton_update_server_configs.rb

Overview

A resque worker to get the server configs from time to time (information such as available layouts are updated).

Class Method Summary collapse

Class Method Details

.performObject



6
7
8
9
10
11
12
13
14
15
16
17
# File 'app/workers/bigbluebutton_update_server_configs.rb', line 6

def self.perform
  Rails.logger.info "BigbluebuttonUpdateServerConfigs worker running"
  BigbluebuttonServer.find_each do |server|
    Rails.logger.info "BigbluebuttonUpdateServerConfigs updating configs for #{server.inspect}"

    # update configs
    server.update_config

    # update API version
    server.update_attributes(version: server.set_api_version_from_server)
  end
end