Sha256: a9c8fd9962395e0f5a22527d2c198f05da55f426e9415f573ba1558a1f5e1ab9

Contents?: true

Size: 608 Bytes

Versions: 2

Compression:

Stored size: 608 Bytes

Contents

# This is not actually required by the actual library
# loads the bundled environment
require 'bundler/shared_helpers'

if Bundler::SharedHelpers.in_bundle?
  env_file = Bundler::SharedHelpers.env_file
  if env_file.exist?
    require env_file
  else
    require 'bundler'
    begin
      Bundler.setup
    rescue Bundler::BundlerError => e
      puts "\e[31m#{e.message}\e[0m"
      exit e.status_code
    end
  end

  # Add bundler to the load path after disabling system gems
  bundler_lib = File.expand_path("../..", __FILE__)
  $LOAD_PATH.unshift(bundler_lib) unless $LOAD_PATH.include?(bundler_lib)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bundler-0.9.23 lib/bundler/setup.rb
bundler-0.9.22 lib/bundler/setup.rb