Class: Bundler::Plugin::Installer::Git

Inherits:
Source::Git show all
Defined in:
lib/bundler/plugin/installer/git.rb

Constant Summary

Constants inherited from Source::Path

Source::Path::DEFAULT_GLOB

Instance Attribute Summary

Attributes inherited from Source::Git

#branch, #glob, #options, #ref, #submodules, #uri

Attributes inherited from Source::Path

#name, #options, #path, #root_path, #version

Attributes inherited from Source

#dependency_names

Instance Method Summary collapse

Methods inherited from Source::Git

#allow_git_ops?, #app_cache_dirname, #cache, #current_branch, #eql?, #extension_dir_name, from_lock, #hash, #initialize, #install, #load_spec_files, #local?, #local_override!, #name, #revision, #specs, #to_gemfile, #to_lock, #to_s, #unlock!, #uri_with_specifiers

Methods inherited from Source::Path

#app_cache_dirname, #cache, #cached!, #eql?, #expanded_original_path, from_lock, #hash, #initialize, #install, #local_specs, #remote!, #specs, #to_lock, #to_s

Methods inherited from Source

#add_dependency_names, #cached!, #can_lock?, #dependency_names_to_double_check, #double_check_for, #extension_cache_path, #identifier, #include?, #inspect, #local!, #local_only!, #path?, #remote!, #spec_names, #unmet_deps, #version_message

Constructor Details

This class inherits a constructor from Bundler::Source::Git

Instance Method Details

#cache_pathObject



7
8
9
10
11
12
13
# File 'lib/bundler/plugin/installer/git.rb', line 7

def cache_path
  @cache_path ||= begin
    git_scope = "#{base_name}-#{uri_hash}"

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

#generate_bin(spec, disable_extensions = false) ⇒ Object



27
28
29
30
# File 'lib/bundler/plugin/installer/git.rb', line 27

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

#install_pathObject



15
16
17
18
19
20
21
# File 'lib/bundler/plugin/installer/git.rb', line 15

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

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

#rootObject



23
24
25
# File 'lib/bundler/plugin/installer/git.rb', line 23

def root
  Plugin.root
end