Sha256: 1403004b3d8b61e9ddbc18afed9bb30d9351ba2489e4fad5097ce3d8f6eaf308

Contents?: true

Size: 283 Bytes

Versions: 12

Compression:

Stored size: 283 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

12 entries across 12 versions & 1 rubygems

Version Path
bootsnap-1.17.0 lib/bootsnap/bundler.rb
bootsnap-1.16.0 lib/bootsnap/bundler.rb
bootsnap-1.15.0 lib/bootsnap/bundler.rb
bootsnap-1.14.0 lib/bootsnap/bundler.rb
bootsnap-1.13.0 lib/bootsnap/bundler.rb
bootsnap-1.12.0 lib/bootsnap/bundler.rb
bootsnap-1.11.1 lib/bootsnap/bundler.rb
bootsnap-1.11.0 lib/bootsnap/bundler.rb
bootsnap-1.10.3 lib/bootsnap/bundler.rb
bootsnap-1.10.2 lib/bootsnap/bundler.rb
bootsnap-1.10.1 lib/bootsnap/bundler.rb
bootsnap-1.10.0 lib/bootsnap/bundler.rb