Class Procfile


  • public class Procfile
    extends Object
    • Method Detail

      • add

        public void add​(String processType,
                        String command)
      • isEmpty

        public boolean isEmpty()
      • asString

        public String asString()
      • empty

        public static Procfile empty()
      • fromFile

        public static Procfile fromFile​(Path path)
                                 throws IOException
        Reads Profile from a file. If the file cannot be found, an empty Procfile is returned.
        Parameters:
        path - The path of the file to read
        Returns:
        A Procfile with the entries from the given path
        Throws:
        IOException - If an IOExecption occurs while reading the file