Class: Bundler::Plugin::Installer::Git
- Inherits:
-
Source::Git
- Object
- Source
- Source::Path
- Source::Git
- Bundler::Plugin::Installer::Git
- Defined in:
- lib/bundler/plugin/installer/git.rb
Constant Summary
Constants inherited from Source::Path
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
Instance Method Summary collapse
- #cache_path ⇒ Object
- #generate_bin(spec, disable_extensions = false) ⇒ Object
- #install_path ⇒ Object
- #root ⇒ Object
- #version_message(spec) ⇒ Object
Methods inherited from Source::Git
#allow_git_ops?, #app_cache_dirname, #cache, #eql?, #extension_dir_name, from_lock, #hash, #initialize, #install, #load_spec_files, #local?, #local_override!, #name, #revision, #specs, #to_lock, #to_s, #unlock!
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
#can_lock?, #dependency_names_to_double_check, #double_check_for, #extension_cache_path, #include?, #inspect, #path?, #unmet_deps
Constructor Details
This class inherits a constructor from Bundler::Source::Git
Instance Method Details
#cache_path ⇒ Object
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
31 32 33 34 |
# File 'lib/bundler/plugin/installer/git.rb', line 31 def generate_bin(spec, disable_extensions = false) # Need to find a way without code duplication # For now, we can ignore this end |
#install_path ⇒ Object
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 |
#root ⇒ Object
27 28 29 |
# File 'lib/bundler/plugin/installer/git.rb', line 27 def root Plugin.root end |
#version_message(spec) ⇒ Object
23 24 25 |
# File 'lib/bundler/plugin/installer/git.rb', line 23 def (spec) "#{spec.name} #{spec.version}" end |