43444546474849505152
String runUrlBase = System.getProperty("whirr.runurl.base", "http://whirr.s3.amazonaws.com/"); for (String url : urls) { scriptBuilder.addStatement(exec("runurl " + new URL(new URL(runUrlBase), url))); } return scriptBuilder.build(org.jclouds.scriptbuilder.domain.OsFamily.UNIX) .getBytes(); } }
495051525354555657
public String render(OsFamily family) { ScriptBuilder scriptBuilder = new ScriptBuilder(); for (Statement statement : statements) { scriptBuilder.addStatement(statement); } return scriptBuilder.build(family); } }
444546474849505152
exec("chmod 755 /usr/bin/runurl")); for (String url : urls) { String runUrl = new URL(new URL(runUrlBase), url).toExternalForm(); scriptBuilder.addStatement(exec("runurl " + runUrl)); } return scriptBuilder.build(OsFamily.UNIX); } }