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

Version Path
gooddata-0.6.49 spec/environment/environment.rb
gooddata-0.6.48 spec/environment/environment.rb
gooddata-0.6.47 spec/environment/environment.rb
gooddata-0.6.46 spec/environment/environment.rb
gooddata-0.6.45 spec/environment/environment.rb
gooddata-0.6.44 spec/environment/environment.rb
gooddata-0.6.43 spec/environment/environment.rb
gooddata-0.6.42 spec/environment/environment.rb
gooddata-0.6.41 spec/environment/environment.rb
gooddata-0.6.40 spec/environment/environment.rb
gooddata-0.6.39 spec/environment/environment.rb
gooddata-0.6.38 spec/environment/environment.rb
gooddata-0.6.37 spec/environment/environment.rb
gooddata-0.6.36 spec/environment/environment.rb
gooddata-0.6.35 spec/environment/environment.rb
gooddata-0.6.34 spec/environment/environment.rb
gooddata-0.6.33 spec/environment/environment.rb
gooddata-0.6.32 spec/environment/environment.rb
gooddata-0.6.31 spec/environment/environment.rb
gooddata-0.6.30 spec/environment/environment.rb