Class: HomeWorkChecker::Unarchive::Zip

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Zip.



4
5
6
7
# File 'lib/hw_checker/zip.rb', line 4

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