In Files

  • bundler/installer/gem_installer.rb

Class/Module Index [+]

Quicksearch

Bundler::GemInstaller

Attributes

force[R]
installer[R]
spec[R]
standalone[R]
worker[R]

Public Class Methods

new(spec, installer, standalone = false, worker = 0, force = false) click to toggle source
 
               # File bundler/installer/gem_installer.rb, line 9
def initialize(spec, installer, standalone = false, worker = 0, force = false)
  @spec = spec
  @installer = installer
  @standalone = standalone
  @worker = worker
  @force = force
end
            

Public Instance Methods

install_from_spec() click to toggle source
 
               # File bundler/installer/gem_installer.rb, line 17
def install_from_spec
  post_install_message = spec_settings ? install_with_settings : install
  Bundler.ui.debug "#{worker}:  #{spec.name} (#{spec.version}) from #{spec.loaded_from}"
  generate_executable_stubs
  return true, post_install_message
rescue Bundler::InstallHookError, Bundler::SecurityError, APIResponseMismatchError
  raise
rescue Errno::ENOSPC
  return false, out_of_space_message
rescue StandardError => e
  return false, specific_failure_message(e)
end