Class: MetaBuild::Extractor::WarExtractor

Inherits:
BaseExtractor show all
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

#artifact, #file, #parent

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

#extractObject



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