Class: MetaBuild::Extractor::WarExtractor
- Inherits:
-
BaseExtractor
- Object
- BaseExtractor
- MetaBuild::Extractor::WarExtractor
- Defined in:
- lib/meta_build/extractor/war_extractor.rb
Constant Summary collapse
- EXPECTED_PATHS =
%w(META-INF WEB-INF/lib public)
Instance Attribute Summary
Attributes inherited from BaseExtractor
Instance Method Summary collapse
Methods inherited from BaseExtractor
#create_tmp_dir, #initialize, #tmp_dir
Constructor Details
This class inherits a constructor from MetaBuild::Extractor::BaseExtractor
Instance Method Details
#extract ⇒ Object
8 9 10 11 12 13 |
# File 'lib/meta_build/extractor/war_extractor.rb', line 8 def extract self.create_tmp_dir EXPECTED_PATHS.each do |path| MetaBuild::Helper::ZipHelper.extract @file, path, self.tmp_dir end end |