Sha256: 0dc9e3e6ad0363ed6b712d7d545d3f10032d1433a4fa05146c97d7e2ea8bf632
Contents?: true
Size: 708 Bytes
Versions: 23
Compression:
Stored size: 708 Bytes
Contents
# encoding: UTF-8 # # Copyright (c) 2010-2015 GoodData Corporation. All rights reserved. # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. module GoodData module Environment class << self def load(env = (ENV['GD_ENV'] && ENV['GD_ENV'].split('/')[1]) || 'develop') require_relative 'default' puts "USING ENVIRONMENT: #{env}" begin require_relative env rescue puts "Unable to find environment '#{env}'" require_relative 'develop' end ENV['GD_SERVER'] = GoodData::Environment::ConnectionHelper::DEFAULT_SERVER end end end end
Version data entries
23 entries across 23 versions & 1 rubygems