Examples of ScriptBuilder


Examples of org.platformlayer.ops.networks.ScriptBuilder

  @Override
  protected byte[] getContentsBytes() throws OpsException {
    Command command = buildIptablesAddCommand();

    ScriptBuilder sb = new ScriptBuilder();
    sb.addMetadata("key", ruleKey);
    sb.add(command);

    return sb.getBytes();
  }
View Full Code Here

Examples of org.platformlayer.ops.networks.ScriptBuilder

    default:
      throw new IllegalStateException();
    }
    File scriptFile = new File(transportDirectory, fileName);

    ScriptBuilder sb = new ScriptBuilder();
    sb.add(command);

    String script = sb.toString();

    String existing = target.readTextFile(scriptFile);

    boolean shouldUpload = true;
    if (existing != null) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.