Class EnvBuilder

java.lang.Object
org.jclouds.scriptbuilder.EnvBuilder

public class EnvBuilder extends Object
Creates an environment file
  • Constructor Details

    • EnvBuilder

      public EnvBuilder()
  • Method Details

    • export

      public EnvBuilder export(String name, String value)
      Exports a variable inside the script
      Parameters:
      name - name of the variable in UPPER_UNDERSCORE case format
    • build

      public String build(OsFamily osFamily)
      builds the environment file, by adding the following
      1. example usage
      2. variable exports
      3. return statement
      Parameters:
      osFamily - whether to write a cmd or bash script.