Sha256: 310ea93cbf9fc612b8877b08af930b8d07be3291cc3f57065ee1dc1511b7359c

Contents?: true

Size: 282 Bytes

Versions: 6

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

6 entries across 6 versions & 1 rubygems

Version Path
bootsnap-1.18.4 lib/bootsnap/bundler.rb
bootsnap-1.18.3 lib/bootsnap/bundler.rb
bootsnap-1.18.2 lib/bootsnap/bundler.rb
bootsnap-1.18.1 lib/bootsnap/bundler.rb
bootsnap-1.18.0 lib/bootsnap/bundler.rb
bootsnap-1.17.1 lib/bootsnap/bundler.rb