Sha256: 5cd3994010da279457bb569fcf8505201c954d86955463823a5ed8f830a391e0

Contents?: true

Size: 763 Bytes

Versions: 8

Compression:

Stored size: 763 Bytes

Contents

# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).

file = File.join(Rails.root, "features", "config.yml")
if File.exists?(file)
  config = YAML.load_file(file)

  if ENV['SERVER']
    unless config['servers'].has_key?(ENV['SERVER'])
      throw Exception.new("Server #{ENV['SERVER']} does not exists in your configuration file.")
    end
    server = config['servers'][ENV['SERVER']]
  else
    server = config['servers'][config['servers'].keys.first]
  end
  server['version'] = '0.7' unless server.has_key?('version')
  server['name'] = URI.parse(server['url']).host

  BigbluebuttonServer.create!(server)
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
bigbluebutton_rails-1.3.0.mweb1 spec/rails_app/db/seeds.rb
bigbluebutton_rails-1.3.0 spec/rails_app/db/seeds.rb
bigbluebutton_rails-1.3.0.beta1 spec/rails_app/db/seeds.rb
bigbluebutton_rails-1.2.0 spec/rails_app/db/seeds.rb
bigbluebutton_rails-1.1.0 spec/rails_app/db/seeds.rb
bigbluebutton_rails-1.0.0 spec/rails_app/db/seeds.rb
bigbluebutton_rails-0.1.1 spec/rails_app/db/seeds.rb
bigbluebutton_rails-0.1.0 spec/rails_app/db/seeds.rb