@Test public void processConsole() throws Exception { Path archiveFile = TestHelper.getResource("/fixtures/hello-console-1.2.4.tar.gz"); try (Assembly assembly = Assemblys.process(archiveFile)) { assertThat(assembly.getName(), is("hello-console")); assertThat(assembly.getVersion(), is("1.2.4")); assertThat(assembly.isSnapshot(), is(false)); assertThat(assembly.getArchiveFile(), is(archiveFile)); assertThat(assembly.getUnpackedDir().getFileName().toString(), is("hello-console-1.2.4")); assertThat(assembly.hasDaemons(), is(false)); } }
static public Assembly process(Path archiveFile) throws IOException { Path tempDir = Files.createTempDirectory("stork-deploy."); CloseablePath closeablePath = new CloseablePath(tempDir); return process(archiveFile, tempDir, Arrays.asList(closeablePath)); }
Assemblys { static public Assembly process(Path archiveFile) throws IOException { Path tempDir = Files.createTempDirectory("stork-deploy."); CloseablePath closeablePath = new CloseablePath(tempDir); return process(archiveFile, tempDir, Arrays.asList(closeablePath)); } }
Assemblys { static public Assembly process(Path archiveFile) throws IOException { Path tempDir = Files.createTempDirectory("stork-deploy."); CloseablePath closeablePath = new CloseablePath(tempDir); return process(archiveFile, tempDir, Arrays.asList(closeablePath)); }  }
Assemblys { static public Assembly process(Path archiveFile) throws IOException { Path tempDir = Files.createTempDirectory("stork-deploy."); CloseablePath closeablePath = new CloseablePath(tempDir); return process(archiveFile, tempDir, Arrays.asList(closeablePath)); }  static Assembly process(Path archiveFile); static Assembly process(Path archiveFile, Path workDir, List<Closeable> resources); }
Assemblys { static public Assembly process(Path archiveFile) throws IOException { Path tempDir = Files.createTempDirectory("stork-deploy."); CloseablePath closeablePath = new CloseablePath(tempDir); return process(archiveFile, tempDir, Arrays.asList(closeablePath)); }  static Assembly process(Path archiveFile); static Assembly process(Path archiveFile, Path workDir, List<Closeable> resources);  }