Sha256: 6c36b75175a97a14c040c56182dc70ff94127452d92499f4a68c5913f4860ee1

Contents?: true

Size: 282 Bytes

Versions: 30

Compression:

Stored size: 282 Bytes

Contents

# frozen_string_literal: true
module Bootsnap
  extend(self)

  def bundler?
    return false unless defined?(::Bundler)

    # Bundler environment variable
    %w(BUNDLE_BIN_PATH BUNDLE_GEMFILE).each do |current|
      return true if ENV.key?(current)
    end

    false
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
bootsnap-1.9.4 lib/bootsnap/bundler.rb
bootsnap-1.9.3 lib/bootsnap/bundler.rb
bootsnap-1.9.2 lib/bootsnap/bundler.rb
bootsnap-1.9.1 lib/bootsnap/bundler.rb
bootsnap-1.9.0 lib/bootsnap/bundler.rb
bootsnap-1.8.1 lib/bootsnap/bundler.rb
bootsnap-1.8.0 lib/bootsnap/bundler.rb
bootsnap-1.7.7 lib/bootsnap/bundler.rb
bootsnap-1.7.6 lib/bootsnap/bundler.rb
bootsnap-1.7.5 lib/bootsnap/bundler.rb
bootsnap-1.7.4 lib/bootsnap/bundler.rb
bootsnap-1.7.3 lib/bootsnap/bundler.rb
bootsnap-1.7.2 lib/bootsnap/bundler.rb
bootsnap-1.7.1 lib/bootsnap/bundler.rb
bootsnap-1.7.1.pre1 lib/bootsnap/bundler.rb
bootsnap-1.7.0 lib/bootsnap/bundler.rb
bootsnap-1.6.0 lib/bootsnap/bundler.rb
bootsnap-1.5.1-java lib/bootsnap/bundler.rb
bootsnap-1.5.0-java lib/bootsnap/bundler.rb
bootsnap-1.5.1 lib/bootsnap/bundler.rb