class Bundler::RubyGemsGemInstaller

def install

def install
  pre_install_checks
  run_pre_install_hooks
  spec.loaded_from = spec_file
  # Completely remove any previous gem files
  FileUtils.rm_rf gem_dir
  FileUtils.rm_rf spec.extension_dir
  FileUtils.mkdir_p gem_dir, :mode => 0o755
  extract_files
  build_extensions
  write_build_info_file
  run_post_build_hooks
  generate_bin
  generate_plugins
  write_spec
  write_cache_file
  say spec.post_install_message unless spec.post_install_message.nil?
  run_post_install_hooks
  spec
end