Class: GemsSnapshot::TarImporter

Inherits:
Object
  • Object
show all
Defined in:
lib/gems_snapshot/importer/tar_importer.rb

Instance Method Summary collapse

Instance Method Details

#import(filename) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/gems_snapshot/importer/tar_importer.rb', line 7

def import(filename)
  files = extract_files_from_tar(filename)
  copy_gems_to_cache_directory files
   = (files)

  yml_importer = GemsSnapshot::YmlImporter.new
  yml_importer.import()
end