@Test public void testWhenGit() { assertEquals("git clone git: getStatement.apply(ImmutableMap.of("puppet.nginx.module", "git: }
@Override public Statement apply(Map<String, String> props) { try { return installModuleFromRemoteFileOrGit(find(props.keySet(), contains(MODULE_KEY_PATTERN)), props); } catch (NoSuchElementException e) { throw new IllegalArgumentException(format("couldn't find pattern: %s in properties %s", MODULE_KEY_PATTERN, props)); } }
StatementToInstallModule implements Function<Map<String, String>, Statement> { @Override public Statement apply(Map<String, String> props) { try { return installModuleFromRemoteFileOrGit(find(props.keySet(), contains(MODULE_KEY_PATTERN)), props); } catch (NoSuchElementException e) { throw new IllegalArgumentException(format("couldn't find pattern: %s in properties %s", MODULE_KEY_PATTERN, props)); } } }
StatementToInstallModule implements Function<Map<String, String>, Statement> { @Override public Statement apply(Map<String, String> props) { try { return installModuleFromRemoteFileOrGit(find(props.keySet(), contains(MODULE_KEY_PATTERN)), props); } catch (NoSuchElementException e) { throw new IllegalArgumentException(format("couldn't find pattern: %s in properties %s", MODULE_KEY_PATTERN, props)); } } StatementToInstallModule(ClusterActionEvent event);  StatementToInstallModule(PrepareRemoteFileUrl prepareRemoteFileUrl); }
StatementToInstallModule implements Function<Map<String, String>, Statement> { @Override public Statement apply(Map<String, String> props) { try { return installModuleFromRemoteFileOrGit(find(props.keySet(), contains(MODULE_KEY_PATTERN)), props); } catch (NoSuchElementException e) { throw new IllegalArgumentException(format("couldn't find pattern: %s in properties %s", MODULE_KEY_PATTERN, props)); } } StatementToInstallModule(ClusterActionEvent event);  StatementToInstallModule(PrepareRemoteFileUrl prepareRemoteFileUrl); @Override Statement apply(Map<String, String> props); }
StatementToInstallModule implements Function<Map<String, String>, Statement> { @Override public Statement apply(Map<String, String> props) { try { return installModuleFromRemoteFileOrGit(find(props.keySet(), contains(MODULE_KEY_PATTERN)), props); } catch (NoSuchElementException e) { throw new IllegalArgumentException(format("couldn't find pattern: %s in properties %s", MODULE_KEY_PATTERN, props)); } } StatementToInstallModule(ClusterActionEvent event);  StatementToInstallModule(PrepareRemoteFileUrl prepareRemoteFileUrl); @Override Statement apply(Map<String, String> props);  }