/usr/lib/ruby/vendor_ruby/bundler/plugin/installer/git.rb is in ruby-bundler 1.13.6-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | # 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 version_message(spec)
"#{spec.name} #{spec.version}"
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
|