extract_files(destination_dir, pattern = "*")
public
Extracts the files in this package into destination_dir
If pattern is specified, only entries matching that glob will be
extracted.
# File lib/rubygems/package.rb, line 333
def extract_files destination_dir, pattern = "*"
verify unless @spec
FileUtils.mkdir_p destination_dir
@gem.with_read_io do |io|
reader = Gem::Package::TarReader.new io
reader.each do |entry|
next unless entry.full_name == 'data.tar.gz'
extract_tar_gz entry, destination_dir, pattern
return # ignore further entries
end
end
end