Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 720b40b1f4
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 30 lines (29 sloc) 0.883 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
#!/usr/bin/env ruby
require 'bundler'
begin
  # Check if an older version of bundler is installed
  $:.each do |path|
    if path =~ %r'/bundler-0.(\d+)' && $1.to_i < 9
      err = "Please remove Bundler 0.8 versions."
      err << "This can be done by running `gem cleanup bundler`."
      abort(err)
    end
  end
  require 'bundler/cli'
  Bundler::CLI.start
rescue Bundler::BundlerError => e
  Bundler.ui.error e.message
  Bundler.ui.debug e.backtrace.join("\n")
  exit e.status_code
rescue Interrupt => e
  Bundler.ui.error "\nQuitting..."
  Bundler.ui.debug e.backtrace.join("\n")
  exit 1
rescue SystemExit => e
  exit e.status
rescue Exception => e
  Bundler.ui.error "Unfortunately, a fatal error has occurred. " +
    "Please report this error to the Bundler issue tracker at " +
    "https://github.com/carlhuda/bundler/issues so that we can fix it. Thanks!"
  raise e
end
Something went wrong with that request. Please try again.