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