Package com.heroku.sdk.deploy.util
Class Procfile
- java.lang.Object
-
- com.heroku.sdk.deploy.util.Procfile
-
public class Procfile extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(String processType, String command)StringasString()static Procfileempty()static ProcfilefromFile(Path path)Reads Profile from a file.booleanisEmpty()Procfilemerge(Procfile other)static Procfilesingleton(String processType, String command)
-
-
-
Method Detail
-
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
-
-