public static Statement version() {
return exec(String.format("head -1 %s/VERSION.txt | cut -f1 -d ' '", JETTY_HOME));
}
public static Statement install() {
return new StatementList(
AdminAccess.builder().adminUsername("web").build(),
InstallJDK.fromOpenJDK(),
authorizePortInIpTables(),
extractTargzAndFlattenIntoDirectory(JETTY_URL, JETTY_HOME),
exec("chown -R web " + JETTY_HOME));