Sha256: 2c05d2af3021594e3e3faa4d072da02fe1b6d0bbf9bde89bb72345656fd4cd55

Contents?: true

Size: 963 Bytes

Versions: 108

Compression:

Stored size: 963 Bytes

Contents

# frozen_string_literal: true

require_relative "shared_helpers"

if Bundler::SharedHelpers.in_bundle?
  require_relative "../bundler"

  if STDOUT.tty? || ENV["BUNDLER_FORCE_TTY"]
    begin
      Bundler.ui.silence { Bundler.setup }
    rescue Bundler::BundlerError => e
      Bundler.ui.error e.message
      Bundler.ui.warn e.backtrace.join("\n") if ENV["DEBUG"]
      if e.is_a?(Bundler::GemNotFound)
        suggested_cmd = "bundle install"
        original_gemfile = Bundler.original_env["BUNDLE_GEMFILE"]
        suggested_cmd += " --gemfile #{original_gemfile}" if original_gemfile
        Bundler.ui.warn "Run `#{suggested_cmd}` to install missing gems."
      end
      exit e.status_code
    end
  else
    Bundler.ui.silence { Bundler.setup }
  end

  # We might be in the middle of shelling out to rubygems
  # (RUBYOPT=-rbundler/setup), so we need to give rubygems the opportunity of
  # not being silent.
  Gem::DefaultUserInteraction.ui = nil
end

Version data entries

108 entries across 108 versions & 4 rubygems

Version Path
harbr-0.1.96 vendor/bundle/ruby/3.2.0/gems/bundler-2.4.21/lib/bundler/setup.rb
harbr-0.1.95 vendor/bundle/ruby/3.2.0/gems/bundler-2.4.21/lib/bundler/setup.rb
harbr-0.1.94 vendor/bundle/ruby/3.2.0/gems/bundler-2.4.21/lib/bundler/setup.rb
harbr-0.1.93 vendor/bundle/ruby/3.2.0/gems/bundler-2.4.21/lib/bundler/setup.rb
harbr-0.1.91 vendor/bundle/ruby/3.2.0/gems/bundler-2.4.21/lib/bundler/setup.rb
harbr-0.1.90 vendor/bundle/ruby/3.2.0/gems/bundler-2.4.21/lib/bundler/setup.rb
harbr-0.1.89 vendor/bundle/ruby/3.2.0/gems/bundler-2.4.21/lib/bundler/setup.rb
harbr-0.1.88 vendor/bundle/ruby/3.2.0/gems/bundler-2.4.21/lib/bundler/setup.rb
harbr-0.1.87 vendor/bundle/ruby/3.2.0/gems/bundler-2.4.21/lib/bundler/setup.rb
harbr-0.1.86 vendor/bundle/ruby/3.2.0/gems/bundler-2.4.21/lib/bundler/setup.rb
harbr-0.1.85 vendor/bundle/ruby/3.2.0/gems/bundler-2.4.21/lib/bundler/setup.rb
harbr-0.1.84 vendor/bundle/ruby/3.2.0/gems/bundler-2.4.21/lib/bundler/setup.rb
harbr-0.1.83 vendor/bundle/ruby/3.2.0/gems/bundler-2.4.21/lib/bundler/setup.rb
harbr-0.1.82 vendor/bundle/ruby/3.2.0/gems/bundler-2.4.21/lib/bundler/setup.rb
harbr-0.1.81 vendor/bundle/ruby/3.2.0/gems/bundler-2.4.21/lib/bundler/setup.rb
harbr-0.1.80 vendor/bundle/ruby/3.2.0/gems/bundler-2.4.21/lib/bundler/setup.rb
harbr-0.1.79 vendor/bundle/ruby/3.2.0/gems/bundler-2.4.21/lib/bundler/setup.rb
harbr-0.1.78 vendor/bundle/ruby/3.2.0/gems/bundler-2.4.21/lib/bundler/setup.rb
harbr-0.1.77 vendor/bundle/ruby/3.2.0/gems/bundler-2.4.21/lib/bundler/setup.rb
harbr-0.1.76 vendor/bundle/ruby/3.2.0/gems/bundler-2.4.21/lib/bundler/setup.rb