PHP 8.2.31
Preview: git.rb Size: 777 B
/proc/thread-self/root/opt/alt/ruby31/share/gems/gems/bundler-2.3.27/lib/bundler/plugin/installer/git.rb

# frozen_string_literal: true

module Bundler
  module Plugin
    class Installer
      class Git < Bundler::Source::Git
        def cache_path
          @cache_path ||= begin
            git_scope = "#{base_name}-#{uri_hash}"

            Plugin.cache.join("bundler", "git", git_scope)
          end
        end

        def install_path
          @install_path ||= begin
            git_scope = "#{base_name}-#{shortref_for_path(revision)}"

            Plugin.root.join("bundler", "gems", git_scope)
          end
        end

        def root
          Plugin.root
        end

        def generate_bin(spec, disable_extensions = false)
          # Need to find a way without code duplication
          # For now, we can ignore this
        end
      end
    end
  end
end

Directory Contents

Dirs: 0 × Files: 2

Name Size Perms Modified Actions
777 B lrw-r--r-- 2025-04-28 17:36:06
Edit Download
407 B lrw-r--r-- 2025-04-28 17:36:06
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).