123456789_123456789_123456789_123456789_123456789_

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

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: Bundler::Source::Git
Defined in: lib/bundler/plugin/installer/git.rb

Constant Summary

::Bundler::Source::Path - Inherited

DEFAULT_GLOB

Class Method Summary

Instance Attribute Summary

Instance Method Summary

::Bundler::Source::Git - Inherited

::Bundler::Source::Path - Inherited

::Bundler::Source - Inherited

#add_dependency_names, #cached!, #can_lock?, #dependency_names_to_double_check,
#double_check_for

it’s possible that gems from one source depend on gems from some other source, so now we download gemspecs and iterate over those dependencies, looking for gems we don’t have info on yet.

#extension_cache_path, #identifier, #include?, #inspect, #local!, #local_only!, #remote!, #spec_names, #unmet_deps, #version_message, #earlier_version?, #extension_cache_slug, #print_using_message, #version_color

Constructor Details

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

Instance Method Details

#cache_path

[ GitHub ]

  
# 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)

[ GitHub ]

  
# 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_path

[ GitHub ]

  
# 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

[ GitHub ]

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

def root
  Plugin.root
end