Class: HwCheker::HomeWorkChecker::Unarchive::Zip

Inherits:
Object
  • Object
show all
Defined in:
lib/hw_cheker/zip.rb

Instance Method Summary collapse

Constructor Details

#initialize(filename, tmp_path = '/tmp') ⇒ Zip

Returns a new instance of Zip.



6
7
8
9
10
# File 'lib/hw_cheker/zip.rb', line 6

def initialize(filename, tmp_path = '/tmp')
  @file = filename
  `7za t #{@file}`
  `7z x #{@file} -o#{tmp_path}`
end