| 1 |
# frozen_string_literal: true |
| 2 |
|
| 3 |
module Bundler |
| 4 |
module Plugin |
| 5 |
class Installer |
| 6 |
class Git < Bundler::Source::Git |
| 7 |
def cache_path |
| 8 |
@cache_path ||= begin |
| 9 |
git_scope = "#{base_name}-#{uri_hash}" |
| 10 |
|
| 11 |
Plugin.cache.join("bundler", "git", git_scope) |
| 12 |
end |
| 13 |
end |
| 14 |
|
| 15 |
def install_path |
| 16 |
@install_path ||= begin |
| 17 |
git_scope = "#{base_name}-#{shortref_for_path(revision)}" |
| 18 |
|
| 19 |
Plugin.root.join("bundler", "gems", git_scope) |
| 20 |
end |
| 21 |
end |
| 22 |
|
| 23 |
def root |
| 24 |
Plugin.root |
| 25 |
end |
| 26 |
|
| 27 |
def generate_bin(spec, disable_extensions = false) |
| 28 |
# Need to find a way without code duplication |
| 29 |
# For now, we can ignore this |
| 30 |
end |
| 31 |
end |
| 32 |
end |
| 33 |
end |
| 34 |
end |