Class EnvBuilder


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

      • EnvBuilder

        public EnvBuilder()
    • Method Detail

      • 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.