Sha256: 87a7f55f7ad26d7f08b0df422c56bfccbb8590f1d60950236d8011d157bd56bb
Contents?: true
Size: 845 Bytes
Versions: 1
Compression:
Stored size: 845 Bytes
Contents
# encoding: UTF-8 # # Copyright (c) 2010-2017 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 GoodData::Environment::ProjectHelper.set_const :PROJECT_URL, "/gdc/projects/#{GoodData::Environment::ProjectHelper::PROJECT_ID}" ENV['GD_SERVER'] = GoodData::Environment::ConnectionHelper::DEFAULT_SERVER end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gooddata-0.6.50 | spec/environment/environment.rb |