class Bundler::Source::GemCache
def initialize(options)
def initialize(options) @path = options["path"] end
def install(spec)
def install(spec) destination = Gem.dir Bundler.ui.debug " * Installing from pack" installer = Gem::Installer.new "#{@path}/#{spec.full_name}.gem", :install_dir => Gem.dir, :ignore_dependencies => true, :wrappers => true, :env_shebang => true, :bin_dir => "#{Gem.dir}/bin" installer.install end
def specs
def specs @specs ||= begin index = Index.new Dir["#{@path}/*.gem"].each do |gemfile| spec = Gem::Format.from_file_by_path(gemfile).spec spec.source = self index << spec end index.freeze end end
def to_s
def to_s ".gem files at #{@path}" end