In Files

  • rubygems/installer.rb

Class/Module Index [+]

Quicksearch

Gem::Installer::FakePackage

Attributes

spec[RW]

Public Class Methods

new(spec) click to toggle source
 
               # File rubygems/installer.rb, line 110
def initialize(spec)
  @spec = spec
end
            

Public Instance Methods

copy_to(path) click to toggle source
 
               # File rubygems/installer.rb, line 125
def copy_to path
end
            
extract_files(destination_dir, pattern = '*') click to toggle source
 
               # File rubygems/installer.rb, line 114
def extract_files destination_dir, pattern = '*'
  FileUtils.mkdir_p destination_dir

  spec.files.each do |file|
    file = File.join destination_dir, file
    next if File.exist? file
    FileUtils.mkdir_p File.dirname(file)
    File.open file, 'w' do |fp| fp.puts "# #{file}" end
  end
end