Class: HwCheker::HomeWorkChecker::Unarchive::Zip
- Inherits:
-
Object
- Object
- HwCheker::HomeWorkChecker::Unarchive::Zip
- Defined in:
- lib/hw_cheker/zip.rb
Instance Method Summary collapse
-
#initialize(filename, tmp_path = '/tmp') ⇒ Zip
constructor
A new instance of Zip.
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 |