Sha256: 21412bb0b1d5e5f47d15f92387dbb95eab772360c8bdad6e8ed17fc4c7ca485b

Contents?: true

Size: 597 Bytes

Versions: 3

Compression:

Stored size: 597 Bytes

Contents

# A resque worker to get the server configs from time to time (information such
# as available layouts are updated).
class BigbluebuttonUpdateServerConfigs
  @queue = :bigbluebutton_rails

  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
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bigbluebutton_rails-2.2.0 app/workers/bigbluebutton_update_server_configs.rb
bigbluebutton_rails-2.1.0 app/workers/bigbluebutton_update_server_configs.rb
bigbluebutton_rails-2.0.0 app/workers/bigbluebutton_update_server_configs.rb