Package com.puppetlabs.geppetto.forge.util.TarUtils

Examples of com.puppetlabs.geppetto.forge.util.TarUtils.FileCatcher


  @Override
  public Metadata getMetadataFromPackage(File builtModule) throws IOException {
    InputStream input = new FileInputStream(builtModule);
    try {
      final Metadata[] mdReceiver = new Metadata[1];
      TarUtils.unpack(new GZIPInputStream(input), null, true, new FileCatcher() {
        @Override
        public boolean accept(String fileName) {
          return METADATA_JSON_NAME.equals(fileName);
        }
View Full Code Here

TOP

Related Classes of com.puppetlabs.geppetto.forge.util.TarUtils.FileCatcher

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.